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.
- gen_asm π
- Generate the Cranelift-specific integration of the x64 assembler.
- gen_
inst π - Generate CLIF 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.
- 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_ assembler - Generate the ISLE definitions; this provides ISLE glue to access the assembler instructions in cranelift_assembler_x64_meta.
- 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 - generate_
rust_ πmacro_ for_ assembler - Generate a macro containing builder functions for the assemblerβs ISLE constructors; this provides Rust implementations backing up the ISLE definitions in generate_isle_for_assembler.
- isa_
from_ arch - Generate an ISA from an architecture string (e.g. βx86_64β).