[−][src]Struct llhd::Block
A basic block.
Methods
impl Block
[src]
pub fn new(name: Option<String>) -> Block
[src]
Create a new empty basic block with an optional name (aka label).
pub fn as_ref(&self) -> BlockRef
[src]
Obtain a reference to this block.
ⓘImportant traits for InstIter<'tf>pub fn insts<'a>(&'a self, ctx: &'a dyn UnitContext) -> InstIter<'a>
[src]
ⓘImportant traits for InstIter<'tf>
Obtain an iterator over the instructions in this block.
pub fn inst_refs(&self) -> Iter<InstRef>
[src]
Obtain an iterator over references to the instructions in this block.
pub fn insert_inst(&mut self, inst: InstRef, pos: InstPosition)
[src]
Insert an instruction into this block as dictated by the requested
position. Begin
and End
are treated as synonyms to BlockBegin
and
BlockEnd
. Panics if the referred instruction is not part of this
block.
pub fn detach_inst(&mut self, inst: InstRef)
[src]
Detach an instruction from this block. Panics if the instruction is not part of this block.
Trait Implementations
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 = !
🔬 This is a nightly-only experimental API. (
try_from
)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> 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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,