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.

Get the Name of the entry block for the function

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

Performs the conversion.

Performs the conversion.

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.