[llvm-commits] [llvm] r42137 - in /llvm/trunk: include/llvm/Analysis/MemoryDependenceAnalysis.h lib/Analysis/MemoryDependenceAnalysis.cpp

Owen Anderson resistor at mac.com
Wed Sep 19 09:13:57 PDT 2007


Author: resistor
Date: Wed Sep 19 11:13:57 2007
New Revision: 42137

URL: http://llvm.org/viewvc/llvm-project?rev=42137&view=rev
Log:
Add a flag to mark a dirty cache entry.  This is not yet used, but will eventually
help non-local memdep caching.

Modified:
    llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h
    llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp

Modified: llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h?rev=42137&r1=42136&r2=42137&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h (original)
+++ llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h Wed Sep 19 11:13:57 2007
@@ -59,6 +59,10 @@
     // 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) {}
 

Modified: llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp?rev=42137&r1=42136&r2=42137&view=diff

==============================================================================
--- llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp Wed Sep 19 11:13:57 2007
@@ -34,6 +34,7 @@
   
 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",





More information about the llvm-commits mailing list