[][src]Struct cranelift_codegen_meta::cdsl::recipes::EncodingRecipeBuilder

pub(crate) struct EncodingRecipeBuilder {
    pub name: String,
    format: Rc<InstructionFormat>,
    pub base_size: u64,
    pub operands_in: Option<Vec<OperandConstraint>>,
    pub operands_out: Option<Vec<OperandConstraint>>,
    pub compute_size: Option<&'static str>,
    pub branch_range: Option<BranchRange>,
    pub emit: Option<String>,
    clobbers_flags: Option<bool>,
    inst_predicate: Option<InstructionPredicate>,
    isa_predicate: Option<u8>,
}

Fields

name: Stringformat: Rc<InstructionFormat>base_size: u64operands_in: Option<Vec<OperandConstraint>>operands_out: Option<Vec<OperandConstraint>>compute_size: Option<&'static str>branch_range: Option<BranchRange>emit: Option<String>clobbers_flags: Option<bool>inst_predicate: Option<InstructionPredicate>isa_predicate: Option<u8>

Implementations

impl EncodingRecipeBuilder[src]

pub fn new(
    name: impl Into<String>,
    format: &Rc<InstructionFormat>,
    base_size: u64
) -> Self
[src]

pub fn operands_in(self, constraints: Vec<impl Into<OperandConstraint>>) -> Self[src]

pub fn operands_out(
    self,
    constraints: Vec<impl Into<OperandConstraint>>
) -> Self
[src]

pub fn clobbers_flags(self, flag: bool) -> Self[src]

pub fn emit(self, code: impl Into<String>) -> Self[src]

pub fn branch_range(self, range: (u64, u64)) -> Self[src]

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

pub fn inst_predicate(
    self,
    inst_predicate: impl Into<InstructionPredicate>
) -> Self
[src]

pub fn compute_size(self, compute_size: &'static str) -> Self[src]

pub fn build(self) -> EncodingRecipe[src]

Trait Implementations

impl Clone for EncodingRecipeBuilder[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.