ReplaceInstWithInst overloads
Declared in <llvm/Transforms/Utils/BasicBlockUtils.h>
Replace one instruction with another and copy its debug location.
void
ReplaceInstWithInst(
Instruction* From,
Instruction* To);
» more...
Replace one instruction with another in a basic block.
void
ReplaceInstWithInst(
BasicBlock* BB,
BasicBlock::iterator& BI,
Instruction* I);
» more...
| Name | Description |
|---|---|
| From | Instruction to replace and delete. |
| To | Replacement instruction. |
| BB | Basic block containing the instruction to replace. |
| BI | Iterator referring to the instruction to replace. |
| I | Replacement instruction to insert in its place. |