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
- 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.
- isa
- Define supported ISAs; includes ISA-specific instructions, encodings, registers, settings, etc.
- isle
- shared ๐
- Shared definitions for the Cranelift intermediate language.
- srcgen ๐
- Source code generator.
- unique_
table ๐ - An index-accessed table implementation that avoids duplicate entries.
Macrosยง
- predicate
- A macro that converts boolean settings into predicates to look more natural.
- preset
- A macro that joins boolean settings into a list (e.g.
preset!(feature_a && feature_b)
).
Functionsยง
- generate
- Generates all the source files used in Cranelift from the meta-language.
- generate_
isle - Generates all the ISLE source files used in Cranelift from the meta-language.
- generate_
isle_ ๐for_ shared_ defs - generate_
rust - Generates all the Rust source files used in Cranelift from the meta-language.
- generate_
rust_ ๐for_ shared_ defs - isa_
from_ arch - Generate an ISA from an architecture string (e.g. โx86_64โ).