Struct llvm_ir::basicblock::BasicBlock[][src]

pub struct BasicBlock {
    pub name: Name,
    pub instrs: Vec<Instruction>,
    pub term: Terminator,
}

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: Nameinstrs: 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]

impl Debug for BasicBlock[src]

impl PartialEq<BasicBlock> for BasicBlock[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]

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.