pub struct CFGInfo {
pub entry: Block,
pub return_blocks: Vec<Block>,
pub rpo: EntityVec<RPOIndex, Block>,
pub rpo_pos: PerEntity<Block, Option<RPOIndex>>,
pub domtree: PerEntity<Block, Block>,
pub domtree_children: PerEntity<Block, DomtreeChildren>,
pub def_block: PerEntity<Value, Block>,
pub preds: PerEntity<Block, SmallVec<[Block; 4]>>,
pub pred_pos: PerEntity<Block, SmallVec<[usize; 4]>>,
}
Expand description
Auxiliary analyses of the control-flow graph.
Fields§
§entry: Block
Entry block.
return_blocks: Vec<Block>
Blocks that end in return.
rpo: EntityVec<RPOIndex, Block>
Reverse-postorder traversal of blocks.
rpo_pos: PerEntity<Block, Option<RPOIndex>>
Position of each block in RPO, if reachable.
domtree: PerEntity<Block, Block>
Domtree parents, indexed by block.
domtree_children: PerEntity<Block, DomtreeChildren>
Domtree children.
def_block: PerEntity<Value, Block>
Defining block for a given value.
preds: PerEntity<Block, SmallVec<[Block; 4]>>
Preds for a given block.
pred_pos: PerEntity<Block, SmallVec<[usize; 4]>>
A given block’s position in each predecessor’s successor list.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CFGInfo
impl RefUnwindSafe for CFGInfo
impl Send for CFGInfo
impl Sync for CFGInfo
impl Unpin for CFGInfo
impl UnwindSafe for CFGInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more