logo
pub struct CfgNode {
    pub label: String,
    pub sources: Vec<usize>,
    pub destinations: Vec<usize>,
    pub instructions: Range<usize>,
    pub topo_index: TopologicalIndex,
    pub dominator_parent: usize,
    pub dominated_children: Vec<usize>,
}
Expand description

A node of the control-flow graph

Fields

label: String

Human readable name

sources: Vec<usize>

Predecessors which can jump to the start of this basic block

destinations: Vec<usize>

Successors which the end of this basic block can jump to

instructions: Range<usize>

Range of the instructions belonging to this basic block

topo_index: TopologicalIndex

Topological index

dominator_parent: usize

Immediate dominator (the last control flow junction)

dominated_children: Vec<usize>

All basic blocks which can only be reached through this one

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.