ΒΆllvm::BasicBlock* splitBB(
IRBuilderBase::InsertPoint IP,
bool CreateBranch,
llvm::Twine Name = {})
llvm::BasicBlock* splitBB(
IRBuilderBase::InsertPoint IP,
bool CreateBranch,
llvm::Twine Name = {})
Description
Split a BasicBlock at an InsertPoint, even if the block is degenerate (missing the terminator). llvm::SplitBasicBlock and BasicBlock::splitBasicBlock require a well-formed BasicBlock. \p Name is used for the new successor block. If \p CreateBranch is true, a branch to the new successor will new created such that semantically there is no change; otherwise the block of the insertion point remains degenerate and it is the caller's responsibility to insert a terminator. Returns the new successor block.
Declared at: llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h:52
Parameters
- IRBuilderBase::InsertPoint IP
- bool CreateBranch
- llvm::Twine Name = {}