[][src]Trait llir::values::InstructionTrait

pub trait InstructionTrait<'ctx>: ValueRef {
    fn parent_block(&self) -> Block<'ctx> { ... }
fn parent_function(&self) -> Function<'ctx> { ... }
fn prev_instruction(&self) -> Option<Instruction<'ctx>> { ... }
fn next_instruction(&self) -> Option<Instruction<'ctx>> { ... }
fn num_operands(&self) -> usize { ... }
fn operand(&self, index: usize) -> Option<Operand<'ctx>> { ... }
fn to_string(&self) -> String { ... } }

Provided methods

fn parent_block(&self) -> Block<'ctx>

Get the parent block

fn parent_function(&self) -> Function<'ctx>

Get the parent function

fn prev_instruction(&self) -> Option<Instruction<'ctx>>

Get the previous instruction of this one

fn next_instruction(&self) -> Option<Instruction<'ctx>>

Get the next instruction of this one

fn num_operands(&self) -> usize

Get the number of operands used in this instruction

fn operand(&self, index: usize) -> Option<Operand<'ctx>>

Get the operand at a given index

fn to_string(&self) -> String

Get the string representation of the instruction

Loading content...

Implementors

impl<'ctx> InstructionTrait<'ctx> for BranchInstruction<'ctx>[src]

impl<'ctx> InstructionTrait<'ctx> for Instruction<'ctx>[src]

impl<'ctx> InstructionTrait<'ctx> for AllocaInstruction<'ctx>[src]

impl<'ctx> InstructionTrait<'ctx> for BinaryInstruction<'ctx>[src]

impl<'ctx> InstructionTrait<'ctx> for CallBrInstruction<'ctx>[src]

impl<'ctx> InstructionTrait<'ctx> for CallInstruction<'ctx>[src]

impl<'ctx> InstructionTrait<'ctx> for ConditionalBranchInstruction<'ctx>[src]

impl<'ctx> InstructionTrait<'ctx> for ExtractValueInstruction<'ctx>[src]

impl<'ctx> InstructionTrait<'ctx> for FCmpInstruction<'ctx>[src]

impl<'ctx> InstructionTrait<'ctx> for GetElementPtrInstruction<'ctx>[src]

impl<'ctx> InstructionTrait<'ctx> for ICmpInstruction<'ctx>[src]

impl<'ctx> InstructionTrait<'ctx> for IndirectBranchInstruction<'ctx>[src]

impl<'ctx> InstructionTrait<'ctx> for InsertValueInstruction<'ctx>[src]

impl<'ctx> InstructionTrait<'ctx> for LoadInstruction<'ctx>[src]

impl<'ctx> InstructionTrait<'ctx> for PhiInstruction<'ctx>[src]

impl<'ctx> InstructionTrait<'ctx> for ReturnInstruction<'ctx>[src]

impl<'ctx> InstructionTrait<'ctx> for SelectInstruction<'ctx>[src]

impl<'ctx> InstructionTrait<'ctx> for StoreInstruction<'ctx>[src]

impl<'ctx> InstructionTrait<'ctx> for SwitchInstruction<'ctx>[src]

impl<'ctx> InstructionTrait<'ctx> for UnaryInstruction<'ctx>[src]

impl<'ctx> InstructionTrait<'ctx> for UnconditionalBranchInstruction<'ctx>[src]

impl<'ctx> InstructionTrait<'ctx> for UnreachableInstruction<'ctx>[src]

Loading content...