[−][src]Struct cranelift_codegen_meta::cdsl::instructions::InstructionBuilder
Fields
name: String
doc: String
format: Rc<InstructionFormat>
operands_in: Option<Vec<Operand>>
operands_out: Option<Vec<Operand>>
constraints: Option<Vec<Constraint>>
is_terminator: bool
is_branch: bool
is_indirect_branch: bool
is_call: bool
is_return: bool
is_ghost: bool
can_load: bool
can_store: bool
can_trap: bool
other_side_effects: bool
Methods
impl InstructionBuilder
[src]
pub fn new<S: Into<String>>(
name: S,
doc: S,
format: &Rc<InstructionFormat>
) -> Self
[src]
name: S,
doc: S,
format: &Rc<InstructionFormat>
) -> Self
pub fn operands_in(self, operands: Vec<&Operand>) -> Self
[src]
pub fn operands_out(self, operands: Vec<&Operand>) -> Self
[src]
pub fn constraints(self, constraints: Vec<Constraint>) -> Self
[src]
pub fn is_terminator(self, val: bool) -> Self
[src]
pub fn is_branch(self, val: bool) -> Self
[src]
pub fn is_indirect_branch(self, val: bool) -> Self
[src]
pub fn is_call(self, val: bool) -> Self
[src]
pub fn is_return(self, val: bool) -> Self
[src]
pub fn is_ghost(self, val: bool) -> Self
[src]
pub fn can_load(self, val: bool) -> Self
[src]
pub fn can_store(self, val: bool) -> Self
[src]
pub fn can_trap(self, val: bool) -> Self
[src]
pub fn other_side_effects(self, val: bool) -> Self
[src]
fn build(self, opcode_number: OpcodeNumber) -> Rc<InstructionContent>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for InstructionBuilder
impl !Send for InstructionBuilder
impl !Sync for InstructionBuilder
impl Unpin for InstructionBuilder
impl !UnwindSafe for InstructionBuilder
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>,