Skip to main content

Module gen_inst

Module gen_inst 

Source
Expand description

Generate CLIF instruction data (including opcodes, formats, builders, etc.).

Constantsยง

TYPESET_LIMIT ๐Ÿ”’

Functionsยง

gen_arguments_method ๐Ÿ”’
gen_bitset ๐Ÿ”’
gen_bitwise_not_builders ๐Ÿ”’
Emit the band_not, bor_not, and bxor_not InstBuilder backwards-compat/convenience methods.
gen_bool_accessor ๐Ÿ”’
gen_builder ๐Ÿ”’
Generate a Builder trait with methods for all instructions.
gen_format_constructor ๐Ÿ”’
Emit a method for creating and inserting an instruction format.
gen_formats ๐Ÿ”’
Generate an instruction format enumeration.
gen_imm_inst_builder ๐Ÿ”’
Emit the {name}_imm_s, {name}_imm_u, and (deprecated) {name}_imm convenience methods for inst, requested via .inst_builder_imm_method(true).
gen_inst_builder ๐Ÿ”’
Emit a method for generating the instruction inst.
gen_instruction_data ๐Ÿ”’
Generate the InstructionData enum.
gen_instruction_data_impl ๐Ÿ”’
Generate the boring parts of the InstructionData implementation.
gen_member_inits ๐Ÿ”’
Emit member initializers for an instruction format.
gen_one_imm_inst_builder ๐Ÿ”’
Emit a single immediate convenience method for inst with the given method name suffix (e.g. "_imm_s"). signed selects sign- vs zero-extension of the materialized immediate, and deprecation, if set, marks the method #[deprecated] with the given note.
gen_opcodes ๐Ÿ”’
gen_stack_access_builders ๐Ÿ”’
Emit the stack_load, stack_store, dynamic_stack_load, and dynamic_stack_store InstBuilder backwards-compat/convenience methods.
gen_type_constraints ๐Ÿ”’
Generate value type constraints for all instructions.
gen_typesets_table ๐Ÿ”’
Generate the table of ValueTypeSets described by type_sets.
generate ๐Ÿ”’
get_constraint ๐Ÿ”’
Get the value type constraint for an SSA value operand, where ctrl_typevar is the controlling type variable.
iterable_to_string ๐Ÿ”’
typeset_to_string ๐Ÿ”’