SplitBlockAndInsertIfElse overloads
Declared in <llvm/Transforms/Utils/BasicBlockUtils.h>
Split a block and insert a conditional else-branch around the split point.
Instruction*
SplitBlockAndInsertIfElse(
Value* Cond,
BasicBlock::iterator SplitBefore,
bool Unreachable,
MDNode* BranchWeights = nullptr,
DomTreeUpdater* DTU = nullptr,
LoopInfo* LI = nullptr,
BasicBlock* ElseBlock = nullptr);
» more...
Split a block and insert an else-branch at an instruction.
Instruction*
SplitBlockAndInsertIfElse(
Value* Cond,
Instruction* SplitBefore,
bool Unreachable,
MDNode* BranchWeights = nullptr,
DomTreeUpdater* DTU = nullptr,
LoopInfo* LI = nullptr,
BasicBlock* ElseBlock = nullptr);
» more...
The terminator of the else-block.
| Name | Description |
|---|---|
| Cond | Condition controlling the inserted branch. |
| SplitBefore | Instruction at which the block is split. |
| Unreachable | Whether the else-block ends with unreachable. |
| BranchWeights | Optional branch-weight metadata for the new branch. |
| DTU | Optional dominator-tree updater for CFG changes. |
| LI | Optional loop info to update. |
| ElseBlock | Optional existing block to use as the else-block. |