[llvm-commits] [llvm] r60217 - /llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h
Chris Lattner
sabre at nondot.org
Fri Nov 28 13:47:19 PST 2008
Author: lattner
Date: Fri Nov 28 15:47:19 2008
New Revision: 60217
URL: http://llvm.org/viewvc/llvm-project?rev=60217&view=rev
Log:
forward declare CallSite instead of #includ'ing it.
Modified:
llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h
Modified: llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h?rev=60217&r1=60216&r2=60217&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h (original)
+++ llvm/trunk/include/llvm/Analysis/MemoryDependenceAnalysis.h Fri Nov 28 15:47:19 2008
@@ -15,7 +15,6 @@
#define LLVM_ANALYSIS_MEMORY_DEPENDENCE_H
#include "llvm/Pass.h"
-#include "llvm/Support/CallSite.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallPtrSet.h"
@@ -23,6 +22,7 @@
class Function;
class FunctionPass;
class Instruction;
+ class CallSite;
/// MemoryDependenceAnalysis - This is an analysis that determines, for a
/// given memory operation, what preceding memory operations it depends on.
@@ -32,8 +32,7 @@
private:
// A map from instructions to their dependency, with a boolean
// flags for whether this mapping is confirmed or not
- typedef DenseMap<Instruction*, std::pair<Instruction*, bool> >
- depMapType;
+ typedef DenseMap<Instruction*, std::pair<Instruction*, bool> > depMapType;
depMapType depGraphLocal;
// A map from instructions to their non-local dependencies.
@@ -43,8 +42,7 @@
// A reverse mapping form dependencies to the dependees. This is
// used when removing instructions to keep the cache coherent.
- typedef DenseMap<Value*, SmallPtrSet<Instruction*, 4> >
- reverseDepMapType;
+ typedef DenseMap<Value*, SmallPtrSet<Instruction*, 4> > reverseDepMapType;
reverseDepMapType reverseDep;
// A reverse mapping form dependencies to the non-local dependees.
More information about the llvm-commits
mailing list