diff options
author | Owen Anderson <resistor@mac.com> | 2007-08-08 21:39:39 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-08-08 21:39:39 +0000 |
commit | 77eea8dbfb8438afc39e3ad4b605451ca3d6816b (patch) | |
tree | f4f9158e439003d42a82dec6adb5b974504ee867 /include/llvm/Analysis | |
parent | 0e8e10d1520c121c87eea2d48c2165ed39366625 (diff) | |
download | external_llvm-77eea8dbfb8438afc39e3ad4b605451ca3d6816b.zip external_llvm-77eea8dbfb8438afc39e3ad4b605451ca3d6816b.tar.gz external_llvm-77eea8dbfb8438afc39e3ad4b605451ca3d6816b.tar.bz2 |
Change the None and NonLocal markers in memdep to be const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40946 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r-- | include/llvm/Analysis/MemoryDependenceAnalysis.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/Analysis/MemoryDependenceAnalysis.h b/include/llvm/Analysis/MemoryDependenceAnalysis.h index 28e0454..2abb6e6 100644 --- a/include/llvm/Analysis/MemoryDependenceAnalysis.h +++ b/include/llvm/Analysis/MemoryDependenceAnalysis.h @@ -32,23 +32,23 @@ class Instruction; class MemoryDependenceAnalysis : public FunctionPass { private: - typedef DenseMap<Instruction*, std::pair<Instruction*, bool> > + typedef DenseMap<Instruction*, std::pair<const Instruction*, bool> > depMapType; depMapType depGraphLocal; - typedef DenseMap<Instruction*, + typedef DenseMap<const Instruction*, SmallPtrSet<Instruction*, 4> > reverseDepMapType; reverseDepMapType reverseDep; - Instruction* getCallSiteDependency(CallSite C, Instruction* start, + const Instruction* getCallSiteDependency(CallSite C, Instruction* start, BasicBlock* block); void nonLocalHelper(Instruction* query, BasicBlock* block, DenseMap<BasicBlock*, Value*>& resp); public: - static Instruction* NonLocal; - static Instruction* None; + static const Instruction* NonLocal; + static const Instruction* None; static char ID; // Class identification, replacement for typeinfo MemoryDependenceAnalysis() : FunctionPass((intptr_t)&ID) {} @@ -70,7 +70,7 @@ class MemoryDependenceAnalysis : public FunctionPass { /// getDependency - Return the instruction on which a memory operation /// depends, starting with start. - Instruction* getDependency(Instruction* query, Instruction* start = 0, + const Instruction* getDependency(Instruction* query, Instruction* start = 0, BasicBlock* block = 0); void getNonLocalDependency(Instruction* query, |