[llvm-commits] CVS: llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Aug 31 14:42:08 PDT 2003


Changes in directory llvm/lib/Analysis/IPA:

MemoryDepAnalysis.cpp updated: 1.4 -> 1.5

---
Log message:

Move the getAnalysisUsage method from the header file


---
Diffs of the changes:

Index: llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp
diff -u llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp:1.4 llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp:1.5
--- llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp:1.4	Sun Aug 31 14:35:16 2003
+++ llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp	Sun Aug 31 14:40:57 2003
@@ -41,8 +41,7 @@
 /// not copied over from one table to another since it is no longer useful.
 ///--------------------------------------------------------------------------
 
-struct ModRefTable
-{
+struct ModRefTable {
   typedef hash_map<Instruction*, ModRefInfo> ModRefMap;
   typedef ModRefMap::const_iterator                 const_map_iterator;
   typedef ModRefMap::      iterator                        map_iterator;
@@ -197,6 +196,17 @@
 //----------------------------------------------------------------------------
 // class MemoryDepAnalysis: A dep. graph for load/store/call instructions
 //----------------------------------------------------------------------------
+
+
+/// getAnalysisUsage - This does not modify anything.  It uses the Top-Down DS
+/// Graph and IPModRef.
+///
+void MemoryDepAnalysis::getAnalysisUsage(AnalysisUsage &AU) const {
+  AU.setPreservesAll();
+  AU.addRequired<TDDataStructures>();
+  AU.addRequired<IPModRef>();
+}
+
 
 /// Basic dependence gathering algorithm, using TarjanSCCIterator on CFG:
 /// 





More information about the llvm-commits mailing list