[][src]Struct cranelift_codegen_meta::gen_encodings::EncodingList

struct EncodingList {
    inst: Rc<InstructionContent>,
    typ: Option<ValueType>,
    encodings: Vec<Rc<EncodingContent>>,
    offset: Option<usize>,
}

List of instructions for encoding a given type + opcode pair.

An encoding list contains a sequence of predicates and encoding recipes, all encoded as u16 values.

Fields

inst: Rc<InstructionContent>typ: Option<ValueType>encodings: Vec<Rc<EncodingContent>>offset: Option<usize>

Methods

impl EncodingList[src]

fn new(inst: &Rc<InstructionContent>, typ: Option<ValueType>) -> Self[src]

fn encode(
    &mut self,
    isa: &TargetIsa,
    cpu_mode: &CpuMode,
    enc_lists: &mut UniqueSeqTable<u16>,
    enc_lists_doc: &mut HashMap<usize, Vec<String>>
)
[src]

Encode this list as a sequence of u16 numbers.

Adds the sequence to enc_lists and records the returned offset as self.offset.

Adds comment lines to enc_lists_doc keyed by enc_lists offsets.

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.