[−][src]Struct cranelift_codegen_meta::gen_encodings::Encoder
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]
&mut self,
recipes: &PrimaryMap<EncodingRecipeNumber, EncodingRecipe>,
enc: &Rc<EncodingContent>,
is_final: bool
)
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
impl RefUnwindSafe for Encoder[src]
impl Send for Encoder[src]
impl Sync for Encoder[src]
impl Unpin for Encoder[src]
impl UnwindSafe for Encoder[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,