LLVM API Documentation

Public Member Functions | Static Public Member Functions | Friends
llvm::ModuleToFunctionPassAdaptor< FunctionPassT > Class Template Reference

Trivial adaptor that maps from a module to its functions. More...

#include <PassManager.h>

List of all members.

Public Member Functions

 ModuleToFunctionPassAdaptor (FunctionPassT Pass)
 ModuleToFunctionPassAdaptor (const ModuleToFunctionPassAdaptor &Arg)
 ModuleToFunctionPassAdaptor (ModuleToFunctionPassAdaptor &&Arg)
ModuleToFunctionPassAdaptoroperator= (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)

Detailed Description

template<typename FunctionPassT>
class llvm::ModuleToFunctionPassAdaptor< FunctionPassT >

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.


Constructor & Destructor Documentation

template<typename FunctionPassT >
llvm::ModuleToFunctionPassAdaptor< FunctionPassT >::ModuleToFunctionPassAdaptor ( FunctionPassT  Pass) [inline, explicit]

Definition at line 967 of file IR/PassManager.h.

template<typename FunctionPassT >
llvm::ModuleToFunctionPassAdaptor< FunctionPassT >::ModuleToFunctionPassAdaptor ( const ModuleToFunctionPassAdaptor< FunctionPassT > &  Arg) [inline]

Definition at line 971 of file IR/PassManager.h.

template<typename FunctionPassT >
llvm::ModuleToFunctionPassAdaptor< FunctionPassT >::ModuleToFunctionPassAdaptor ( ModuleToFunctionPassAdaptor< FunctionPassT > &&  Arg) [inline]

Definition at line 973 of file IR/PassManager.h.


Member Function Documentation

template<typename FunctionPassT >
static StringRef llvm::ModuleToFunctionPassAdaptor< FunctionPassT >::name ( ) [inline, static]

Definition at line 1014 of file IR/PassManager.h.

template<typename FunctionPassT >
ModuleToFunctionPassAdaptor& llvm::ModuleToFunctionPassAdaptor< FunctionPassT >::operator= ( ModuleToFunctionPassAdaptor< FunctionPassT >  RHS) [inline]

Definition at line 979 of file IR/PassManager.h.

References std::swap().

template<typename FunctionPassT >
PreservedAnalyses llvm::ModuleToFunctionPassAdaptor< FunctionPassT >::run ( Module M,
ModuleAnalysisManager AM 
) [inline]

Friends And Related Function Documentation

template<typename FunctionPassT >
void swap ( ModuleToFunctionPassAdaptor< FunctionPassT > &  LHS,
ModuleToFunctionPassAdaptor< FunctionPassT > &  RHS 
) [friend]

Definition at line 975 of file IR/PassManager.h.


The documentation for this class was generated from the following file: