Struct llvm_ir::basicblock::BasicBlock
source · [−]pub struct BasicBlock {
pub name: Name,
pub instrs: Vec<Instruction>,
pub term: Terminator,
}
Expand description
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 14 docs on Functions
Fields
name: Name
instrs: Vec<Instruction>
term: Terminator
Implementations
sourceimpl BasicBlock
impl BasicBlock
Trait Implementations
sourceimpl Clone for BasicBlock
impl Clone for BasicBlock
sourcefn clone(&self) -> BasicBlock
fn clone(&self) -> BasicBlock
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BasicBlock
impl Debug for BasicBlock
sourceimpl PartialEq<BasicBlock> for BasicBlock
impl PartialEq<BasicBlock> for BasicBlock
sourcefn eq(&self, other: &BasicBlock) -> bool
fn eq(&self, other: &BasicBlock) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl StructuralPartialEq for BasicBlock
Auto Trait Implementations
impl RefUnwindSafe for BasicBlock
impl Send for BasicBlock
impl Sync for BasicBlock
impl Unpin for BasicBlock
impl UnwindSafe for BasicBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more