[][src]Trait llir::values::ConstExprTrait

pub trait ConstExprTrait<'ctx>: ValueRef {
    fn num_operands(&self) -> usize { ... }
fn operand(&self, index: usize) -> Option<Constant<'ctx>> { ... }
fn to_string(&self) -> String { ... } }

Provided methods

fn num_operands(&self) -> usize

Get the number of operands used in this instruction

fn operand(&self, index: usize) -> Option<Constant<'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> ConstExprTrait<'ctx> for ConstExpr<'ctx>[src]

impl<'ctx> ConstExprTrait<'ctx> for BinaryConstExpr<'ctx>[src]

impl<'ctx> ConstExprTrait<'ctx> for FCmpConstExpr<'ctx>[src]

impl<'ctx> ConstExprTrait<'ctx> for GetElementPtrConstExpr<'ctx>[src]

impl<'ctx> ConstExprTrait<'ctx> for ICmpConstExpr<'ctx>[src]

impl<'ctx> ConstExprTrait<'ctx> for UnaryConstExpr<'ctx>[src]

Loading content...