mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Move the PMStack class out of Pass.h and into PassManagers.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48367 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8f5422c24b
commit
d7a3541a05
@ -24,6 +24,7 @@ namespace llvm {
|
||||
|
||||
class LPPassManager;
|
||||
class Function;
|
||||
class PMStack;
|
||||
|
||||
class LoopPass : public Pass {
|
||||
|
||||
|
@ -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 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
/// 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.
|
||||
|
@ -13,6 +13,7 @@
|
||||
|
||||
#include "llvm/PassManager.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include <deque>
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Overview:
|
||||
@ -105,6 +106,36 @@ enum PassDebuggingString {
|
||||
ON_CG_MSG // "' on Call Graph ...\n'"
|
||||
};
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// 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
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user