[][src]Struct cranelift_codegen_meta::cdsl::encodings::EncodingBuilder

pub(crate) struct EncodingBuilder {
    inst: InstSpec,
    recipe: EncodingRecipeNumber,
    encbits: u16,
    inst_predicate: Option<InstructionPredicate>,
    isa_predicate: Option<u8>,
    bound_type: Option<ValueType>,
}

Fields

inst: InstSpecrecipe: EncodingRecipeNumberencbits: u16inst_predicate: Option<InstructionPredicate>isa_predicate: Option<u8>bound_type: Option<ValueType>

Methods

impl EncodingBuilder[src]

pub fn new(inst: InstSpec, recipe: EncodingRecipeNumber, encbits: u16) -> Self[src]

pub fn inst_predicate(self, inst_predicate: InstructionPredicateNode) -> Self[src]

pub fn isa_predicate(self, isa_predicate: u8) -> Self[src]

pub fn build(
    self,
    recipes: &PrimaryMap<EncodingRecipeNumber, EncodingRecipe>,
    inst_pred_reg: &mut InstructionPredicateRegistry
) -> Rc<EncodingContent>
[src]

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.