Struct llvm_ir_analysis::ControlFlowGraph [−][src]
pub struct ControlFlowGraph<'m> { /* fields omitted */ }Expand description
The control flow graph for a particular function.
To construct a ControlFlowGraph, use
FunctionAnalysis, which you can get
from ModuleAnalysis.
Implementations
Get the predecessors of the basic block with the given Name
Get the predecessors of the special Return node, i.e., get all blocks
which may directly return
Get the successors of the basic block with the given Name.
Here, CFGNode::Return indicates that the function may directly return
from this basic block.