pub struct BasicBlock {
pub id: usize,
pub start_address: u64,
pub end_address: u64,
pub instructions: Vec<Instruction>,
pub successors: Vec<usize>,
pub predecessors: Vec<usize>,
pub block_type: BlockType,
pub dominator: Option<usize>,
pub dominance_frontier: Vec<usize>,
}
Expand description
Basic block in control flow graph
Fields§
§id: usize
Block ID
start_address: u64
Start address
end_address: u64
End address
instructions: Vec<Instruction>
Instructions in this block
successors: Vec<usize>
Successor blocks
predecessors: Vec<usize>
Predecessor blocks
block_type: BlockType
Block type classification
dominator: Option<usize>
Dominator block ID (if computed)
dominance_frontier: Vec<usize>
Dominance frontier block IDs
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 · 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 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