pub struct BasicBlock {
pub id: BlockId,
pub start: usize,
pub end: usize,
pub successors: Vec<BlockId>,
pub predecessors: Vec<BlockId>,
pub label_depth: usize,
pub is_loop_header: bool,
}Expand description
A basic block in the CFG
Fields§
§id: BlockIdUnique ID for this block
start: usizeStart index in instruction stream
end: usizeEnd index (exclusive) in instruction stream
successors: Vec<BlockId>Successor blocks (control flow targets)
predecessors: Vec<BlockId>Predecessor blocks (blocks that jump here)
label_depth: usizeLabel depth (for structured control flow)
is_loop_header: boolWhether this block is a loop header
Trait Implementations§
Source§impl Clone for BasicBlock
impl Clone for BasicBlock
Source§fn clone(&self) -> BasicBlock
fn clone(&self) -> BasicBlock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BasicBlock
impl RefUnwindSafe for BasicBlock
impl Send for BasicBlock
impl Sync for BasicBlock
impl Unpin for BasicBlock
impl UnsafeUnpin 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