llvm::splitBB

splitBB overloads

Synopses

Declared in <llvm/Frontend/OpenMP/OMPIRBuilder.h>

Split a basic block at an IRBuilder insertion point.

BasicBlock*
splitBB(
    IRBuilderBase& Builder,
    bool CreateBranch,
    llvm::Twine Name = {});
» more...

Split a basic block at an IRBuilder insertion point.

BasicBlock*
splitBB(
    IRBuilder<>& Builder,
    bool CreateBranch,
    llvm::Twine Name);
» more...

Split a basic block at an insertion point, even if it lacks a terminator.

BasicBlock*
splitBB(
    IRBuilderBase::InsertPoint IP,
    bool CreateBranch,
    DebugLoc DL,
    llvm::Twine Name = {});
» more...

Return Value

The new successor basic block.

Parameters

NameDescription
BuilderIRBuilder whose insertion point marks the split location.
CreateBranchWhen true, insert a branch to the new successor block.
NameOptional name for the new successor block.
IPInsertion point at which to split the block.
DLDebug location for a created branch instruction.