[][src]Struct cranelift_codegen_meta::gen_encodings::Encoder

struct Encoder {
    num_instruction_predicates: usize,
    words: Vec<u16>,
    docs: Vec<(usize, String)>,
}

Encoder for the list format above.

Fields

num_instruction_predicates: usizewords: Vec<u16>

u16 encoding list words.

docs: Vec<(usize, String)>

Documentation comments: Index into words + comment.

Implementations

impl Encoder[src]

fn new(num_instruction_predicates: usize) -> Self[src]

fn recipe(
    &mut self,
    recipes: &PrimaryMap<EncodingRecipeNumber, EncodingRecipe>,
    enc: &Rc<EncodingContent>,
    is_final: bool
)
[src]

Add a recipe+bits entry to the list.

fn pred(&mut self, pred_comment: String, skip: usize, n: usize)[src]

Add a predicate entry.

fn inst_predicate(&mut self, pred: InstructionPredicateNumber, skip: usize)[src]

Add an instruction predicate entry.

fn isa_predicate(&mut self, pred: u8, skip: usize)[src]

Add an ISA predicate entry.

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.