[][src]Struct llhd::ir::EntityBuilder

pub struct EntityBuilder<'u> {
    pub entity: &'u mut Entity,
    // some fields omitted
}

Temporary object used to build a single Entity.

Fields

entity: &'u mut Entity

The entity currently being built.

Methods

impl<'u> EntityBuilder<'u>[src]

pub fn new(entity: &mut Entity) -> EntityBuilder[src]

Create a new entity builder.

Trait Implementations

impl<'_> UnitBuilder for EntityBuilder<'_>[src]

type Unit = Entity

The type returned by unit() and unit_mut().

fn ins(&mut self) -> InstBuilder<&mut Self>[src]

Add a new instruction using an InstBuilder.

fn dfg(&self) -> &DataFlowGraph[src]

Get the DFG of the unit being built.

fn dfg_mut(&mut self) -> &mut DataFlowGraph[src]

Get the mutable DFG of the unit being built.

fn cfg(&self) -> &ControlFlowGraph[src]

Get the CFG of the unit being built.

fn cfg_mut(&mut self) -> &mut ControlFlowGraph[src]

Get the mutable CFG of the unit being built.

fn func_layout(&self) -> &FunctionLayout[src]

Get the function/process layout of the unit being built. Read more

fn func_layout_mut(&mut self) -> &mut FunctionLayout[src]

Get the function/process layout of the unit being built. Read more

fn inst_layout(&self) -> &InstLayout[src]

Get the entity layout of the unit being built. Read more

fn inst_layout_mut(&mut self) -> &mut InstLayout[src]

Get the entity layout of the unit being built. Read more

fn add_extern(&mut self, name: UnitName, sig: Signature) -> ExtUnit[src]

Import an external unit for use within this unit.

fn prune_if_unused(&mut self, inst: Inst) -> bool[src]

Remove an instruction if its value is not being read. Read more

Auto Trait Implementations

impl<'u> Sync for EntityBuilder<'u>

impl<'u> Send for EntityBuilder<'u>

impl<'u> Unpin for EntityBuilder<'u>

impl<'u> RefUnwindSafe for EntityBuilder<'u>

impl<'u> !UnwindSafe for EntityBuilder<'u>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]