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 | 8cad423d94fd7e30d84742311c454016f36e3ee3 (patch) | |
tree | f4f9158e439003d42a82dec6adb5b974504ee867 /include/llvm/Analysis | |
parent | d2887e4dcd23783f702d2b7804aeeac71dc2a10b (diff) | |
download | external_llvm-8cad423d94fd7e30d84742311c454016f36e3ee3.zip external_llvm-8cad423d94fd7e30d84742311c454016f36e3ee3.tar.gz external_llvm-8cad423d94fd7e30d84742311c454016f36e3ee3.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, |