diff options
author | Owen Anderson <resistor@mac.com> | 2007-09-19 16:13:57 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-09-19 16:13:57 +0000 |
commit | 7e44756c57907758762df4439e80c38435c52a06 (patch) | |
tree | c7a6a3b7d9db9fcc3a1665be9838164fa54b2df0 | |
parent | 5fc5fdbd8b8f6c87d6d13117b3bd011161aeee61 (diff) | |
download | external_llvm-7e44756c57907758762df4439e80c38435c52a06.tar.gz external_llvm-7e44756c57907758762df4439e80c38435c52a06.tar.bz2 external_llvm-7e44756c57907758762df4439e80c38435c52a06.zip |
Add a flag to mark a dirty cache entry. This is not yet used, but will eventually
help non-local memdep caching.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42137 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Analysis/MemoryDependenceAnalysis.h | 4 | ||||
-rw-r--r-- | lib/Analysis/MemoryDependenceAnalysis.cpp | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Analysis/MemoryDependenceAnalysis.h b/include/llvm/Analysis/MemoryDependenceAnalysis.h index 067bbcb8bc..733e702506 100644 --- a/include/llvm/Analysis/MemoryDependenceAnalysis.h +++ b/include/llvm/Analysis/MemoryDependenceAnalysis.h @@ -59,6 +59,10 @@ class MemoryDependenceAnalysis : public FunctionPass { // Special marker indicating that the query has no dependency at all static Instruction* const None; + + // Special marker indicating a dirty cache entry + static Instruction* const Dirty; + static char ID; // Class identification, replacement for typeinfo MemoryDependenceAnalysis() : FunctionPass((intptr_t)&ID) {} diff --git a/lib/Analysis/MemoryDependenceAnalysis.cpp b/lib/Analysis/MemoryDependenceAnalysis.cpp index 0400ce3429..edbf9337f3 100644 --- a/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -34,6 +34,7 @@ char MemoryDependenceAnalysis::ID = 0; Instruction* const MemoryDependenceAnalysis::NonLocal = (Instruction*)-3; Instruction* const MemoryDependenceAnalysis::None = (Instruction*)-4; +Instruction* const MemoryDependenceAnalysis::Dirty = (Instruction*)-5; // Register this pass... static RegisterPass<MemoryDependenceAnalysis> X("memdep", |