Struct cretonne_codegen::flowgraph::ControlFlowGraph [] [src]

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.

Methods

impl ControlFlowGraph
[src]

[src]

Allocate a new blank control flow graph.

[src]

Clear all data structures in this control flow graph.

[src]

Allocate and compute the control flow graph for func.

[src]

Compute the control flow graph of func.

This will clear and overwrite any information already stored in this data structure.

[src]

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.

Important traits for PredIter<'a>
[src]

Get an iterator over the CFG predecessors to ebb.

[src]

Get an iterator over the CFG successors to ebb.

[src]

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.

Trait Implementations

Auto Trait Implementations