[−][src]Struct llhd::ir::Entity
An entity.
Fields
name: UnitName
sig: Signature
dfg: DataFlowGraph
layout: InstLayout
Methods
impl Entity
[src]
Trait Implementations
impl Unit for Entity
[src]
fn kind(&self) -> UnitKind
[src]
fn dfg(&self) -> &DataFlowGraph
[src]
fn dfg_mut(&mut self) -> &mut DataFlowGraph
[src]
fn cfg(&self) -> &ControlFlowGraph
[src]
fn cfg_mut(&mut self) -> &mut ControlFlowGraph
[src]
fn sig(&self) -> &Signature
[src]
fn sig_mut(&mut self) -> &mut Signature
[src]
fn name(&self) -> &UnitName
[src]
fn name_mut(&mut self) -> &mut UnitName
[src]
fn dump_fmt(&self, f: &mut Formatter) -> Result
[src]
fn verify(&self)
[src]
fn dump(&self) -> UnitDumper<&Self>
[src]
Dump the unit in human-readable form.
fn is_function(&self) -> bool
[src]
Check if this unit is a Function
.
fn is_process(&self) -> bool
[src]
Check if this unit is a Process
.
fn is_entity(&self) -> bool
[src]
Check if this unit is an Entity
.
fn arg_value(&self, arg: Arg) -> Value
[src]
Get the value of argument arg
.
fn input_args<'a>(&'a self) -> Box<dyn Iterator<Item = Value> + 'a>
[src]
Return an iterator over the unit's input arguments.
fn output_args<'a>(&'a self) -> Box<dyn Iterator<Item = Value> + 'a>
[src]
Return an iterator over the unit's output arguments.
fn args<'a>(&'a self) -> Box<dyn Iterator<Item = Value> + 'a>
[src]
Return an iterator over the unit's arguments.
fn input_arg(&self, pos: usize) -> Value
[src]
Get the input argument at position pos
.
fn output_arg(&self, pos: usize) -> Value
[src]
Get the output argument at position pos
.
fn has_result(&self, inst: Inst) -> bool
[src]
Returns whether an instruction produces a result.
fn inst_result(&self, inst: Inst) -> Value
[src]
Returns the result of an instruction.
fn value_type(&self, value: Value) -> Type
[src]
Returns the type of a value.
fn extern_name(&self, ext: ExtUnit) -> &UnitName
[src]
Return the name of an external unit.
fn extern_sig(&self, ext: ExtUnit) -> &Signature
[src]
Return the signature of an external unit.
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,