Add a flag to mark a dirty cache entry. This is not yet used, but will eventually

help non-local memdep caching.

llvm-svn: 42137
This commit is contained in:
Owen Anderson 2007-09-19 16:13:57 +00:00
parent f4bad97ea0
commit c201cbc802
2 changed files with 5 additions and 0 deletions

View File

@ -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) {}

View File

@ -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",