[llvm-commits] [llvm] r48367 - in /llvm/trunk/include/llvm: Analysis/LoopPass.h Pass.h PassManagers.h
Dan Gohman
gohman at apple.com
Fri Mar 14 11:14:29 PDT 2008
Author: djg
Date: Fri Mar 14 13:14:29 2008
New Revision: 48367
URL: http://llvm.org/viewvc/llvm-project?rev=48367&view=rev
Log:
Move the PMStack class out of Pass.h and into PassManagers.h.
Modified:
llvm/trunk/include/llvm/Analysis/LoopPass.h
llvm/trunk/include/llvm/Pass.h
llvm/trunk/include/llvm/PassManagers.h
Modified: llvm/trunk/include/llvm/Analysis/LoopPass.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/LoopPass.h?rev=48367&r1=48366&r2=48367&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/LoopPass.h (original)
+++ llvm/trunk/include/llvm/Analysis/LoopPass.h Fri Mar 14 13:14:29 2008
@@ -24,6 +24,7 @@
class LPPassManager;
class Function;
+class PMStack;
class LoopPass : public Pass {
Modified: llvm/trunk/include/llvm/Pass.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Pass.h?rev=48367&r1=48366&r2=48367&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Pass.h (original)
+++ llvm/trunk/include/llvm/Pass.h Fri Mar 14 13:14:29 2008
@@ -32,7 +32,6 @@
#include "llvm/Support/DataTypes.h"
#include "llvm/Support/Streams.h"
#include <vector>
-#include <deque>
#include <map>
#include <iosfwd>
#include <cassert>
@@ -369,33 +368,6 @@
}
};
-/// PMStack
-/// Top level pass manager (see PassManager.cpp) maintains active Pass Managers
-/// using PMStack. Each Pass implements assignPassManager() to connect itself
-/// with appropriate manager. assignPassManager() walks PMStack to find
-/// suitable manager.
-///
-/// PMStack is just a wrapper around standard deque that overrides pop() and
-/// push() methods.
-class PMStack {
-public:
- typedef std::deque<PMDataManager *>::reverse_iterator iterator;
- iterator begin() { return S.rbegin(); }
- iterator end() { return S.rend(); }
-
- void handleLastUserOverflow();
-
- void pop();
- inline PMDataManager *top() { return S.back(); }
- void push(PMDataManager *PM);
- inline bool empty() { return S.empty(); }
-
- void dump();
-private:
- std::deque<PMDataManager *> S;
-};
-
-
/// If the user specifies the -time-passes argument on an LLVM tool command line
/// then the value of this boolean will be true, otherwise false.
/// @brief This is the storage for the -time-passes option.
Modified: llvm/trunk/include/llvm/PassManagers.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/PassManagers.h?rev=48367&r1=48366&r2=48367&view=diff
==============================================================================
--- llvm/trunk/include/llvm/PassManagers.h (original)
+++ llvm/trunk/include/llvm/PassManagers.h Fri Mar 14 13:14:29 2008
@@ -13,6 +13,7 @@
#include "llvm/PassManager.h"
#include "llvm/ADT/SmallVector.h"
+#include <deque>
//===----------------------------------------------------------------------===//
// Overview:
@@ -106,6 +107,36 @@
};
//===----------------------------------------------------------------------===//
+// PMStack
+//
+/// PMStack
+/// Top level pass managers (see PassManager.cpp) maintain active Pass Managers
+/// using PMStack. Each Pass implements assignPassManager() to connect itself
+/// with appropriate manager. assignPassManager() walks PMStack to find
+/// suitable manager.
+///
+/// PMStack is just a wrapper around standard deque that overrides pop() and
+/// push() methods.
+class PMStack {
+public:
+ typedef std::deque<PMDataManager *>::reverse_iterator iterator;
+ iterator begin() { return S.rbegin(); }
+ iterator end() { return S.rend(); }
+
+ void handleLastUserOverflow();
+
+ void pop();
+ inline PMDataManager *top() { return S.back(); }
+ void push(PMDataManager *PM);
+ inline bool empty() { return S.empty(); }
+
+ void dump();
+private:
+ std::deque<PMDataManager *> S;
+};
+
+
+//===----------------------------------------------------------------------===//
// PMTopLevelManager
//
/// PMTopLevelManager manages LastUser info and collects common APIs used by
More information about the llvm-commits
mailing list