ΒΆllvm::BasicBlock* SplitBlock(
    llvm::BasicBlock* Old,
    llvm::Instruction* SplitPt,
    llvm::DominatorTree* DT,
    llvm::LoopInfo* LI = nullptr,
    llvm::MemorySSAUpdater* MSSAU = nullptr,
    const llvm::Twine& BBName = "",
    bool Before = false)

Description

Split the specified block at the specified instruction. If \p Before is true, splitBlockBefore handles the block splitting. Otherwise, execution proceeds as described below. Everything before \p SplitPt stays in \p Old and everything starting with \p SplitPt moves to a new block. The two blocks are joined by an unconditional branch. The new block with name \p BBName is returned. FIXME: deprecated, switch to the DomTreeUpdater-based one.

Declared at: llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h:280

Parameters

llvm::BasicBlock* Old
llvm::Instruction* SplitPt
llvm::DominatorTree* DT
llvm::LoopInfo* LI = nullptr
llvm::MemorySSAUpdater* MSSAU = nullptr
const llvm::Twine& BBName = ""
bool Before = false