[][src]Struct cranelift_codegen_meta::cdsl::instructions::InstructionBuilder

pub(crate) struct InstructionBuilder {
    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,
}

Fields

name: Stringdoc: Stringformat: Rc<InstructionFormat>operands_in: Option<Vec<Operand>>operands_out: Option<Vec<Operand>>constraints: Option<Vec<Constraint>>is_terminator: boolis_branch: boolis_indirect_branch: boolis_call: boolis_return: boolis_ghost: boolcan_load: boolcan_store: boolcan_trap: boolother_side_effects: bool

Methods

impl InstructionBuilder[src]

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

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

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.