Struct jit::Instruction [] [src]

pub struct Instruction<'a> {
    // some fields omitted

Represents a single LibJIT instruction


impl<'a> Instruction<'a>

fn get_opcode(self) -> i32

Get the opcode of the instruction

fn get_dest(self) -> Option<&'a Val>

Get the destination value

fn dest_is_value(self) -> bool

Get if the destination value is a value

fn get_value1(self) -> Option<&'a Val>

Get the left value

fn get_value2(self) -> Option<&'a Val>

Get the right value

fn get_function(self) -> Option<&'a Func>

Get the function containing this value

fn get_signature(self) -> Option<&'a Ty>

Get the signature of this value

fn get_name(self) -> &'a str

Get the name of the instruction

Trait Implementations

impl<'a> From<jit_insn_t> for Instruction<'a>

fn from(ptr: jit_insn_t) -> Instruction<'a>

impl<'a> Display for Instruction<'a>

fn fmt(&self, fmt: &mut Formatter) -> Result

Derived Implementations

impl<'a> Copy for Instruction<'a>

impl<'a> Clone for Instruction<'a>

fn clone(&self) -> Instruction<'a>

fn clone_from(&mut self, source: &Self)