Crate cranelift_codegen_meta

Source
Expand description

This crate generates Rust sources for use by cranelift_codegen.

Modulesยง

  • cdsl ๐Ÿ”’
    Cranelift DSL classes.
  • constant_hash ๐Ÿ”’
    Build support for precomputed constant hash tables.
  • Error returned during meta code-generation.
  • gen_inst ๐Ÿ”’
    Generate instruction data (including opcodes, formats, builders, etc.).
  • gen_isle ๐Ÿ”’
  • gen_settings ๐Ÿ”’
    Generate the ISA-specific settings.
  • gen_types ๐Ÿ”’
    Generate sources with type info.
  • Define supported ISAs; includes ISA-specific instructions, encodings, registers, settings, etc.
  • shared ๐Ÿ”’
    Shared definitions for the Cranelift intermediate language.
  • srcgen ๐Ÿ”’
    Source code generator.
  • unique_table ๐Ÿ”’
    An index-accessed table implementation that avoids duplicate entries.

Macrosยง

  • A macro that converts boolean settings into predicates to look more natural.
  • A macro that joins boolean settings into a list (e.g. preset!(feature_a && feature_b)).

Functionsยง