[−][src]Struct llhd::ir::EntityBuilder
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 unit(&self) -> &Entity
[src]
fn unit_mut(&mut self) -> &mut Entity
[src]
fn build_inst(&mut self, data: InstData, ty: Type) -> Inst
[src]
fn remove_inst(&mut self, inst: Inst)
[src]
fn block(&mut self) -> Block
[src]
fn insert_at_end(&mut self)
[src]
fn insert_at_beginning(&mut self)
[src]
fn append_to(&mut self, _: Block)
[src]
fn prepend_to(&mut self, _: Block)
[src]
fn insert_after(&mut self, inst: Inst)
[src]
fn insert_before(&mut self, inst: Inst)
[src]
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 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)
[src]
Remove an instruction if its value is not being read.
Auto Trait Implementations
impl<'u> Send for EntityBuilder<'u>
impl<'u> Sync for EntityBuilder<'u>
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,