ΒΆBasicBlock::iterator PrepareToSplitEntryBlock(
    llvm::BasicBlock& BB,
    BasicBlock::iterator IP)

Description

Instrumentation passes often insert conditional checks into entry blocks. Call this function before splitting the entry block to move instructions that must remain in the entry block up before the split point. Static allocas and llvm.localescape calls, for example, must remain in the entry block.

Declared at: llvm/include/llvm/Transforms/Instrumentation.h:37

Parameters

llvm::BasicBlock& BB
BasicBlock::iterator IP