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§
Trait Implementations§
source§impl Clone for BasicBlock
impl Clone for BasicBlock
source§fn clone(&self) -> BasicBlock
fn clone(&self) -> BasicBlock
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BasicBlock
impl Debug for BasicBlock
source§impl PartialEq for BasicBlock
impl PartialEq for BasicBlock
source§fn 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 ==
.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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more