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

Description

Split the specified block at the specified instruction - everything before SplitPt stays in Old and everything starting with SplitPt moves to a new block. The two blocks are joined by an unconditional branch and the loop info is updated.

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

Parameters

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