diff options
Diffstat (limited to 'llvm/include/llvm/Analysis/PHITransAddr.h')
-rw-r--r-- | llvm/include/llvm/Analysis/PHITransAddr.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/PHITransAddr.h b/llvm/include/llvm/Analysis/PHITransAddr.h index 1f4f3416da8..8257396a09f 100644 --- a/llvm/include/llvm/Analysis/PHITransAddr.h +++ b/llvm/include/llvm/Analysis/PHITransAddr.h @@ -98,6 +98,11 @@ private: Value *InsertPHITranslatedSubExpr(Value *InVal, BasicBlock *CurBB, BasicBlock *PredBB, const DominatorTree &DT, SmallVectorImpl<Instruction*> &NewInsts); + + /// ReplaceInstWithValue - Remove any instruction inputs in the InstInputs + /// array that are due to the specified instruction that is about to be + /// removed from the address, and add any corresponding to V. This returns V. + Value *ReplaceInstWithValue(Instruction *I, Value *V); }; } // end namespace llvm |