Struct cranelift_codegen_meta::shared::Definitions
source · pub(crate) struct Definitions {
pub settings: SettingGroup,
pub all_instructions: Vec<Rc<InstructionContent>>,
}
Fields§
§settings: SettingGroup
§all_instructions: Vec<Rc<InstructionContent>>
Implementations§
source§impl Definitions
impl Definitions
sourcepub fn verify_instruction_formats(&self) -> Vec<&InstructionFormat>
pub fn verify_instruction_formats(&self) -> Vec<&InstructionFormat>
Verifies certain properties of formats.
- Formats must be uniquely named: if two formats have the same name, they must refer to the same data. Otherwise, two format variants in the codegen crate would have the same name.
- Formats must be structurally different from each other. Otherwise, this would lead to code duplicate in the codegen crate.
Returns a list of all the instruction formats effectively used.