Split a basic block at an IRBuilder insertion point.
Synopsis
Declared in <llvm/Frontend/OpenMP/OMPIRBuilder.h>
BasicBlock*
splitBB(
IRBuilderBase& Builder,
bool CreateBranch,
llvm::Twine Name = {});
Description
Split a BasicBlock at Builder's insertion point, even if the block is degenerate (missing the terminator). Its new insert location will stick to after the instruction before the insertion point (instead of moving with the instruction the InsertPoint stores internally).
Return Value
The new successor basic block.
Parameters
Name |
Description |
Builder |
IRBuilder whose insertion point marks the split location. |
CreateBranch |
When true, insert a branch to the new successor block. |
Name |
Optional name for the new successor block. |
Created with MrDocs