Module gen_asm

Source
Expand description

Generate the Cranelift-specific integration of the x64 assembler.

Enums§

IsleConstructor
Different kinds of ISLE constructors generated for a particular instruction.

Functions§

generate_isle
Generate the ISLE definitions that match the isle_assembler_methods! macro above.
generate_isle_inst_decls
Generate a “raw” constructor that simply constructs, but does not emit the assembly instruction:
generate_macro_inst_fn
fn x64_<inst>(&mut self, <params>) -> Inst<R> { ... }
generate_rust_macro
Generate the isle_assembler_methods! macro.
isle_constructors
Returns the ISLE constructors that are going to be used when generating this instruction.
isle_param_for_ctor
Returns the parameter type used for the IsleConstructor variant provided.
isle_param_raw
Returns the type of this operand in ISLE as a part of the ISLE “raw” constructors.
rust_convert_isle_to_assembler
Returns the conversion function, if any, when converting the ISLE type for this parameter to the assembler type for this parameter. Effectively converts self.rust_param_raw() to the assembler type.
rust_param_raw
Returns the Rust type used for the IsleConstructorRaw variants.