[−][src]Struct cranelift_codegen_meta::gen_encodings::EncodingList
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>
Implementations
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]
&mut self,
isa: &TargetIsa,
cpu_mode: &CpuMode,
enc_lists: &mut UniqueSeqTable<u16>,
enc_lists_doc: &mut HashMap<usize, Vec<String>>
)
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
impl !RefUnwindSafe for EncodingList
impl !Send for EncodingList
impl !Sync for EncodingList
impl Unpin for EncodingList
impl !UnwindSafe for EncodingList
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>,