ReplaceInstWithInst overloads
Synopses
Declared in <llvm/Transforms/Utils/BasicBlockUtils.h>
Replace one instruction with another and copy its debug location.
void
ReplaceInstWithInst(
Instruction* From,
Instruction* To);
Replace one instruction with another in a basic block.
void
ReplaceInstWithInst(
BasicBlock* BB,
BasicBlock::iterator& BI,
Instruction* I);
Parameters
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. |
Created with MrDocs