LLVM API Documentation
Trivial adaptor that maps from a module to its functions. More...
#include <PassManager.h>
Public Member Functions | |
ModuleToFunctionPassAdaptor (FunctionPassT Pass) | |
ModuleToFunctionPassAdaptor (const ModuleToFunctionPassAdaptor &Arg) | |
ModuleToFunctionPassAdaptor (ModuleToFunctionPassAdaptor &&Arg) | |
ModuleToFunctionPassAdaptor & | operator= (ModuleToFunctionPassAdaptor RHS) |
PreservedAnalyses | run (Module *M, ModuleAnalysisManager *AM) |
Runs the function pass across every function in the module. | |
Static Public Member Functions | |
static StringRef | name () |
Friends | |
void | swap (ModuleToFunctionPassAdaptor &LHS, ModuleToFunctionPassAdaptor &RHS) |
Trivial adaptor that maps from a module to its functions.
Designed to allow composition of a FunctionPass(Manager) and a ModulePassManager. Note that if this pass is constructed with a pointer to a ModuleAnalysisManager
it will run the FunctionAnalysisManagerModuleProxy
analysis prior to running the function pass over the module to enable a FunctionAnalysisManager
to be used within this run safely.
Definition at line 965 of file IR/PassManager.h.
llvm::ModuleToFunctionPassAdaptor< FunctionPassT >::ModuleToFunctionPassAdaptor | ( | FunctionPassT | Pass | ) | [inline, explicit] |
Definition at line 967 of file IR/PassManager.h.
llvm::ModuleToFunctionPassAdaptor< FunctionPassT >::ModuleToFunctionPassAdaptor | ( | const ModuleToFunctionPassAdaptor< FunctionPassT > & | Arg | ) | [inline] |
Definition at line 971 of file IR/PassManager.h.
llvm::ModuleToFunctionPassAdaptor< FunctionPassT >::ModuleToFunctionPassAdaptor | ( | ModuleToFunctionPassAdaptor< FunctionPassT > && | Arg | ) | [inline] |
Definition at line 973 of file IR/PassManager.h.
static StringRef llvm::ModuleToFunctionPassAdaptor< FunctionPassT >::name | ( | ) | [inline, static] |
Definition at line 1014 of file IR/PassManager.h.
ModuleToFunctionPassAdaptor& llvm::ModuleToFunctionPassAdaptor< FunctionPassT >::operator= | ( | ModuleToFunctionPassAdaptor< FunctionPassT > | RHS | ) | [inline] |
Definition at line 979 of file IR/PassManager.h.
References std::swap().
PreservedAnalyses llvm::ModuleToFunctionPassAdaptor< FunctionPassT >::run | ( | Module * | M, |
ModuleAnalysisManager * | AM | ||
) | [inline] |
Runs the function pass across every function in the module.
Definition at line 985 of file IR/PassManager.h.
References llvm::PreservedAnalyses::all(), llvm::Module::begin(), llvm::Module::end(), llvm::detail::AnalysisManagerBase< DerivedT, IRUnitT >::getResult(), I, llvm::PreservedAnalyses::intersect(), llvm::detail::AnalysisManagerBase< DerivedT, IRUnitT >::invalidate(), and llvm::PreservedAnalyses::preserve().
void swap | ( | ModuleToFunctionPassAdaptor< FunctionPassT > & | LHS, |
ModuleToFunctionPassAdaptor< FunctionPassT > & | RHS | ||
) | [friend] |
Definition at line 975 of file IR/PassManager.h.