[][src]Struct cranelift_codegen_meta::gen_encodings::Level2Table

struct Level2Table {
    typ: Option<ValueType>,
    legalize_code: TransformGroupIndex,
    inst_to_encodings: BTreeMap<String, EncodingList>,
    hash_table_offset: Option<usize>,
    hash_table_len: Option<usize>,
}

Level 2 table mapping instruction opcodes to EncList objects.

A level 2 table can be completely empty if it only holds a custom legalization action for ty.

Fields

typ: Option<ValueType>legalize_code: TransformGroupIndexinst_to_encodings: BTreeMap<String, EncodingList>hash_table_offset: Option<usize>hash_table_len: Option<usize>

Methods

impl Level2Table[src]

fn new(typ: Option<ValueType>, legalize_code: TransformGroupIndex) -> Self[src]

fn enclist_for(&mut self, inst: &Rc<InstructionContent>) -> &mut EncodingList[src]

fn enclists(&mut self) -> ValuesMut<String, EncodingList>[src]

fn is_empty(&self) -> bool[src]

fn layout_hashtable(
    &mut self,
    level2_hashtables: &mut Vec<Option<Level2HashTableEntry>>,
    level2_doc: &mut HashMap<usize, Vec<String>>
)
[src]

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.