[−][src]Struct llhd::ir::prelude::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 func_layout(&self) -> &FunctionLayout
[src]
fn func_layout_mut(&mut self) -> &mut FunctionLayout
[src]
fn inst_layout(&self) -> &InstLayout
[src]
fn inst_layout_mut(&mut self) -> &mut InstLayout
[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
impl Sync for Entity
impl Send for Entity
impl Unpin for Entity
impl RefUnwindSafe for Entity
impl UnwindSafe for Entity
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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<U> 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,