Struct rustc::middle::trans::value::Value[src]
pub struct Value(pub ValueRef);
Methods
impl Value
Wrapper for LLVM ValueRef
fn get(&self) -> ValueRef
Returns the native ValueRef
fn get_parent(self) -> Option<BasicBlock>
Returns the BasicBlock that contains this value
fn erase_from_parent(self)
Removes this value from its containing BasicBlock
fn get_dominating_store(self, bcx: &Block) -> Option<Value>
Returns the single dominating store to this value, if any This only performs a search for a trivially dominating store. The store must be the only user of this value, and there must not be any conditional branches between the store and the given block.
fn get_first_use(self) -> Option<Use>
Returns the first use of this value, if any
fn has_no_uses(self) -> bool
Tests if there are no uses of this value
fn get_single_user(self) -> Option<Value>
Returns the single user of this value If there are no users or multiple users, this returns None
fn user_iter(self) -> Users
Returns an iterator for the users of this value
fn get_operand(self, i: uint) -> Option<Value>
Returns the requested operand of this instruction Returns None, if there's no operand at the given index
fn as_store_inst(self) -> Option<Value>
Returns the Store represent by this value, if any
fn is_a_terminator_inst(self) -> bool
Tests if this value is a terminator instruction