Struct llvm_ir::basicblock::BasicBlock [−][src]
A BasicBlock
is a sequence of zero or more non-terminator instructions
followed by a single terminator instruction which ends the block.
Basic blocks are discussed in the LLVM 12 docs on Functions
Fields
name: Name
instrs: Vec<Instruction>
term: Terminator
Implementations
impl BasicBlock
[src]
pub fn new(name: Name) -> Self
[src]
A BasicBlock
instance with no instructions and an Unreachable
terminator
Trait Implementations
impl Clone for BasicBlock
[src]
fn clone(&self) -> BasicBlock
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BasicBlock
[src]
impl PartialEq<BasicBlock> for BasicBlock
[src]
fn eq(&self, other: &BasicBlock) -> bool
[src]
fn ne(&self, other: &BasicBlock) -> bool
[src]
impl StructuralPartialEq for BasicBlock
[src]
Auto Trait Implementations
impl RefUnwindSafe for BasicBlock
[src]
impl Send for BasicBlock
[src]
impl Sync for BasicBlock
[src]
impl Unpin for BasicBlock
[src]
impl UnwindSafe for BasicBlock
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,