ΒΆllvm::BasicBlock* splitBlockBefore(
llvm::BasicBlock* Old,
llvm::Instruction* SplitPt,
llvm::DomTreeUpdater* DTU,
llvm::LoopInfo* LI,
llvm::MemorySSAUpdater* MSSAU,
const llvm::Twine& BBName = "")
llvm::BasicBlock* splitBlockBefore(
llvm::BasicBlock* Old,
llvm::Instruction* SplitPt,
llvm::DomTreeUpdater* DTU,
llvm::LoopInfo* LI,
llvm::MemorySSAUpdater* MSSAU,
const llvm::Twine& BBName = "")
Description
Split the specified block at the specified instruction \p SplitPt. All instructions before \p SplitPt are moved to a new block and all instructions after \p SplitPt stay in the old block. The new block and the old block are joined by inserting an unconditional branch to the end of the new block. The new block with name \p BBName is returned.
Declared at: llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h:303
Parameters
- llvm::BasicBlock* Old
- llvm::Instruction* SplitPt
- llvm::DomTreeUpdater* DTU
- llvm::LoopInfo* LI
- llvm::MemorySSAUpdater* MSSAU
- const llvm::Twine& BBName = ""