[−][src]Struct cranelift_codegen_meta::gen_encodings::Encoder
Encoder for the list format above.
Fields
num_instruction_predicates: usize
words: 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
impl Send for Encoder
impl Sync for Encoder
impl Unpin for Encoder
impl UnwindSafe for Encoder
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,
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.
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>,