[−][src]Struct cranelift_codegen_meta::cdsl::recipes::EncodingRecipeBuilder
Fields
name: String
format: Rc<InstructionFormat>
base_size: u64
operands_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]
name: impl Into<String>,
format: &Rc<InstructionFormat>,
base_size: u64
) -> Self
pub fn operands_in(self, constraints: Vec<impl Into<OperandConstraint>>) -> Self
[src]
pub fn operands_out(
self,
constraints: Vec<impl Into<OperandConstraint>>
) -> Self
[src]
self,
constraints: Vec<impl Into<OperandConstraint>>
) -> Self
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]
self,
inst_predicate: impl Into<InstructionPredicate>
) -> Self
pub fn compute_size(self, compute_size: &'static str) -> Self
[src]
pub fn build(self) -> EncodingRecipe
[src]
Trait Implementations
impl Clone for EncodingRecipeBuilder
[src]
fn clone(&self) -> EncodingRecipeBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl !RefUnwindSafe for EncodingRecipeBuilder
impl !Send for EncodingRecipeBuilder
impl !Sync for EncodingRecipeBuilder
impl Unpin for EncodingRecipeBuilder
impl !UnwindSafe for EncodingRecipeBuilder
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,