SplitCriticalEdge overloads

Synopses

Declared in <llvm/Transforms/Utils/BasicBlockUtils.h>

Split the critical edge between two basic blocks if one exists.

BasicBlock*
SplitCriticalEdge(
    BasicBlock* Src,
    BasicBlock* Dst,
    CriticalEdgeSplittingOptions const& Options = CriticalEdgeSplittingOptions());

Split a critical edge from a terminator to one of its successors.

BasicBlock*
SplitCriticalEdge(
    Instruction* TI,
    unsigned int SuccNum,
    CriticalEdgeSplittingOptions const& Options = CriticalEdgeSplittingOptions(),
    Twine const& BBName = "");

Return Value

The new block if the edge was split, or null otherwise.

Parameters

Name

Description

Src

Source block of the edge.

Dst

Destination block of the edge.

Options

Analyses and policy controlling the split.

TI

Terminator whose outgoing edge may be split.

SuccNum

Index of the successor edge to split.

BBName

Optional name for the newly created block.

Created with MrDocs