replaceDominatedUsesWith overloads
Synopses
Declared in <llvm/Transforms/Utils/Local.h>
Replace uses dominated by an edge with another value.
unsigned int
replaceDominatedUsesWith(
Value* From,
Value* To,
DominatorTree& DT,
BasicBlockEdge const& Edge);
Replace uses dominated by a block's end with another value.
unsigned int
replaceDominatedUsesWith(
Value* From,
Value* To,
DominatorTree& DT,
BasicBlock const* BB);
Replace uses dominated by an instruction with another value.
unsigned int
replaceDominatedUsesWith(
Value* From,
Value* To,
DominatorTree& DT,
Instruction const* I);
Return Value
Number of replacements made.
Parameters
Name |
Description |
From |
Value whose dominated uses are replaced. |
To |
Replacement value for those uses. |
DT |
Dominator tree used to test edge dominance. |
Edge |
Edge that must dominate a use for it to be replaced. |
BB |
Block whose end must dominate a use for it to be replaced. |
I |
Instruction that must dominate a use for it to be replaced. |
Created with MrDocs