Struct llhd::function::FunctionContext
[−]
[src]
pub struct FunctionContext<'tctx> { /* fields omitted */ }
Methods
impl<'tctx> FunctionContext<'tctx>
[src]
fn new(
module: &'tctx ModuleContext,
function: &'tctx Function
) -> FunctionContext<'tctx>
[src]
module: &'tctx ModuleContext,
function: &'tctx Function
) -> FunctionContext<'tctx>
Trait Implementations
impl<'tctx> Context for FunctionContext<'tctx>
[src]
fn parent(&self) -> Option<&Context>
[src]
Get the parent context to which value resolution shall escalate. May return None
for the context at the top of the hierarchy. Read more
fn try_value(&self, value: &ValueRef) -> Option<&Value>
[src]
Try to resolve a ValueRef
to an actual &Value
reference. May fail if the value is not known to the context. Read more
fn value(&self, value: &ValueRef) -> &Value
[src]
Resolve a ValueRef
to an actual &Value
reference. Panics if the value is unknown to this context and its parents. Read more
fn ty(&self, value: &ValueRef) -> Type
[src]
Get the type of a value.
fn name(&self, value: &ValueRef) -> Option<&str>
[src]
Get the name of a value.
impl<'tctx> UnitContext for FunctionContext<'tctx>
[src]
fn inst(&self, inst: InstRef) -> &Inst
[src]
Resolve a InstRef
to an actual &Inst
reference.
fn argument(&self, argument: ArgumentRef) -> &Argument
[src]
Resolve a ArgumentRef
to an actual &Argument
reference.