[][src]Struct cranelift_codegen_meta::shared::Definitions

pub(crate) struct Definitions {
    pub settings: SettingGroup,
    pub all_instructions: PrimaryMap<OpcodeNumber, Rc<InstructionContent>>,
    pub instructions: InstructionGroup,
    pub imm: Immediates,
    pub formats: Formats,
    pub transform_groups: TransformGroups,
}

Fields

settings: SettingGroupall_instructions: PrimaryMap<OpcodeNumber, Rc<InstructionContent>>instructions: InstructionGroupimm: Immediatesformats: Formatstransform_groups: TransformGroups

Methods

impl Definitions[src]

pub fn verify_instruction_formats(&self) -> Vec<&InstructionFormat>[src]

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.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.