From: Owen Anderson Date: Wed, 19 Sep 2007 16:13:57 +0000 (+0000) Subject: Add a flag to mark a dirty cache entry. This is not yet used, but will eventually X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=742f9b66822cb03af0cf7b94436e9d0288565591;p=oota-llvm.git 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 --- diff --git a/include/llvm/Analysis/MemoryDependenceAnalysis.h b/include/llvm/Analysis/MemoryDependenceAnalysis.h index 067bbcb8bc9..733e702506e 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 0400ce34294..edbf9337f37 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 X("memdep",