LLVM API Documentation
#include <PassManager.h>
Classes | |
struct | ModulePassModel |
Public Member Functions | |
ModulePassManager () | |
ModulePassManager (ModulePassManager &&Arg) | |
ModulePassManager & | operator= (ModulePassManager &&RHS) |
PreservedAnalyses | run (Module *M, ModuleAnalysisManager *AM=nullptr) |
Run all of the module passes in this module pass manager over a module. | |
template<typename ModulePassT > | |
void | addPass (ModulePassT Pass) |
Static Public Member Functions | |
static StringRef | name () |
Definition at line 463 of file IR/PassManager.h.
llvm::ModulePassManager::ModulePassManager | ( | ) | [inline] |
Definition at line 467 of file IR/PassManager.h.
llvm::ModulePassManager::ModulePassManager | ( | ModulePassManager && | Arg | ) | [inline] |
Definition at line 468 of file IR/PassManager.h.
void llvm::ModulePassManager::addPass | ( | ModulePassT | Pass | ) | [inline] |
Definition at line 481 of file IR/PassManager.h.
static StringRef llvm::ModulePassManager::name | ( | ) | [inline, static] |
Definition at line 485 of file IR/PassManager.h.
ModulePassManager& llvm::ModulePassManager::operator= | ( | ModulePassManager && | RHS | ) | [inline] |
Definition at line 469 of file IR/PassManager.h.
PreservedAnalyses ModulePassManager::run | ( | Module * | M, |
ModuleAnalysisManager * | AM = nullptr |
||
) |
Run all of the module passes in this module pass manager over a module.
This method should only be called for a single module as there is the expectation that the lifetime of a pass is bounded to that of a module.
Definition at line 22 of file PassManager.cpp.
References llvm::PreservedAnalyses::all(), llvm::dbgs(), DebugPM, llvm::Module::getContext(), llvm::PreservedAnalyses::intersect(), llvm::detail::AnalysisManagerBase< DerivedT, IRUnitT >::invalidate(), and llvm::LLVMContext::yield().