pub struct ControlFlowGraph { /* fields omitted */ }The Control Flow Graph maintains a mapping of ebbs to their predecessors
and successors where predecessors are basic blocks and successors are
extended basic blocks.
Allocate a new blank control flow graph.
Clear all data structures in this control flow graph.
Allocate and compute the control flow graph for func.
Compute the control flow graph of func.
This will clear and overwrite any information already stored in this data structure.
Recompute the control flow graph of ebb.
This is for use after modifying instructions within a specific EBB. It recomputes all edges
from ebb while leaving edges to ebb intact. Its functionality a subset of that of the
more expensive compute, and should be used when we know we don't need to recompute the CFG
from scratch, but rather that our changes have been restricted to specific EBBs.
Get an iterator over the CFG predecessors to ebb.
Get an iterator over the CFG successors to ebb.
Check if the CFG is in a valid state.
Note that this doesn't perform any kind of validity checks. It simply checks if the
compute() method has been called since the last clear(). It does not check that the
CFG is consistent with the function.
type Error = !
🔬 This is a nightly-only experimental API. (try_from)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from)
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (try_from)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static