aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/MemoryDependenceAnalysis.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2007-07-10 17:59:22 +0000
committerOwen Anderson <resistor@mac.com>2007-07-10 17:59:22 +0000
commit5f323207971da23e2f78dd61d383e9d506fd9d6c (patch)
tree1a5fa33df49bd58c96936ef86e6187f26dced0b1 /include/llvm/Analysis/MemoryDependenceAnalysis.h
parent5e2456c95996338ad7ed461b8ce4d21cb9d70a0b (diff)
Add support for finding the dependencies of call and invoke instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@38497 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/MemoryDependenceAnalysis.h')
-rw-r--r--include/llvm/Analysis/MemoryDependenceAnalysis.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Analysis/MemoryDependenceAnalysis.h b/include/llvm/Analysis/MemoryDependenceAnalysis.h
index 572d24129b..00f5587d23 100644
--- a/include/llvm/Analysis/MemoryDependenceAnalysis.h
+++ b/include/llvm/Analysis/MemoryDependenceAnalysis.h
@@ -18,6 +18,7 @@
#define LLVM_ANALYSIS_MEMORY_DEPENDENCE_H
#include "llvm/Pass.h"
+#include "llvm/Support/CallSite.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/Support/Compiler.h"
#include <map>
@@ -34,6 +35,7 @@ class MemoryDependenceAnalysis : public FunctionPass {
DenseMap<Instruction*, std::pair<Instruction*, bool> > depGraphLocal;
std::multimap<Instruction*, Instruction*> reverseDep;
+ Instruction* getCallSiteDependency(CallSite C, bool local = true);
public:
static Instruction* NonLocal;