summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-31 19:40:57 +0000
committerChris Lattner <sabre@nondot.org>2003-08-31 19:40:57 +0000
commit028f248ba8d6e017f6d5ae8fb9c98717c446e4ad (patch)
tree44792b78c07085787670e34aef990c3f00ff568c /llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp
parent26b500923ccacb0ae50721d3a31337c9b9aa6d35 (diff)
downloadbcm5719-llvm-028f248ba8d6e017f6d5ae8fb9c98717c446e4ad.tar.gz
bcm5719-llvm-028f248ba8d6e017f6d5ae8fb9c98717c446e4ad.zip
Move the getAnalysisUsage method from the header file
llvm-svn: 8264
Diffstat (limited to 'llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp')
-rw-r--r--llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp b/llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp
index 417b4be0eec..685b2eeed76 100644
--- a/llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp
+++ b/llvm/lib/Analysis/IPA/MemoryDepAnalysis.cpp
@@ -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;
@@ -198,6 +197,17 @@ public:
// 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:
///
/// for every SCC S in the CFG in PostOrder on the SCC DAG
OpenPOWER on IntegriCloud