Enum llhd::value::ValueRef
[−]
[src]
pub enum ValueRef { Inst(InstRef), Block(BlockRef), Argument(ArgumentRef), Function(FunctionRef), Process(ProcessRef), Entity(EntityRef), Global, Const(Const), }
A reference to a value in a module.
Variants
Inst(InstRef)
Block(BlockRef)
Argument(ArgumentRef)
Function(FunctionRef)
Process(ProcessRef)
Entity(EntityRef)
Global
Const(Const)
Methods
impl ValueRef
[src]
fn into_const(self) -> Const
[src]
Convert this value reference into the constant it contains. Panics if the value reference does not contain a constant.
fn as_const(&self) -> &Const
[src]
Unwrap and return a reference to the constant represented by this value reference. Panics if the value reference does not contain a constant.
fn id(&self) -> Option<ValueId>
[src]
Obtain the ID of the value this reference points to, or None if the value has no ID (e.g. if it is a constant).