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
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โ€).