mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Add ModulePassManager_New.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31517 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -143,6 +143,29 @@ private:
|
||||
BasicBlockPassManager_New *activeBBPassManager;
|
||||
};
|
||||
|
||||
/// FunctionPassManager_New manages FunctionPasses.
|
||||
/// It batches all Module passes passes and function pass managers together and
|
||||
/// sequence them to process one module.
|
||||
class ModulePassManager_New: public Pass {
|
||||
|
||||
public:
|
||||
ModulePassManager_New() { activeFunctionPassManager = NULL; }
|
||||
|
||||
/// Add a pass into a passmanager queue.
|
||||
bool addPass(Pass *p);
|
||||
|
||||
/// run - Execute all of the passes scheduled for execution. Keep track of
|
||||
/// whether any of the passes modifies the module, and if so, return true.
|
||||
bool runOnModule(Module &M);
|
||||
|
||||
private:
|
||||
// Collection of pass that are not yet scheduled
|
||||
std::vector<Pass *> PassVector;
|
||||
|
||||
// Active Pass Manager
|
||||
FunctionPassManager_New *activeFunctionPassManager;
|
||||
};
|
||||
|
||||
} // End llvm namespace
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user