summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-28 15:39:14 +0000
committerChris Lattner <sabre@nondot.org>2009-11-28 15:39:14 +0000
commitdd696052f0e4ecc973d105be19cf1b4b72f9a0c4 (patch)
tree8226d6891fd486b5865434d0ab138ab1cf321b0b /include
parentab9530ee5d8fec9ed822a82fa21b588952269897 (diff)
downloadllvm-dd696052f0e4ecc973d105be19cf1b4b72f9a0c4.tar.gz
llvm-dd696052f0e4ecc973d105be19cf1b4b72f9a0c4.tar.bz2
llvm-dd696052f0e4ecc973d105be19cf1b4b72f9a0c4.tar.xz
Enhance InsertPHITranslatedPointer to be able to return a list of newly
inserted instructions. No functionality change until someone starts using it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90039 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/MemoryDependenceAnalysis.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Analysis/MemoryDependenceAnalysis.h b/include/llvm/Analysis/MemoryDependenceAnalysis.h
index 390ca76b64..6b300fd950 100644
--- a/include/llvm/Analysis/MemoryDependenceAnalysis.h
+++ b/include/llvm/Analysis/MemoryDependenceAnalysis.h
@@ -261,11 +261,12 @@ namespace llvm {
/// InsertPHITranslatedPointer - Insert a computation of the PHI translated
/// version of 'V' for the edge PredBB->CurBB into the end of the PredBB
- /// block.
+ /// block. All newly created instructions are added to the NewInsts list.
Value *InsertPHITranslatedPointer(Value *V,
BasicBlock *CurBB, BasicBlock *PredBB,
const TargetData *TD,
- const DominatorTree &DT) const;
+ const DominatorTree &DT,
+ SmallVectorImpl<Instruction*> &NewInsts) const;
/// removeInstruction - Remove an instruction from the dependence analysis,
/// updating the dependence of instructions that previously depended on it.