LLVM API Documentation
Adaptor that maps from a SCC to its functions. More...
#include <CGSCCPassManager.h>
Public Member Functions | |
CGSCCToFunctionPassAdaptor (FunctionPassT Pass) | |
CGSCCToFunctionPassAdaptor (const CGSCCToFunctionPassAdaptor &Arg) | |
CGSCCToFunctionPassAdaptor (CGSCCToFunctionPassAdaptor &&Arg) | |
CGSCCToFunctionPassAdaptor & | operator= (CGSCCToFunctionPassAdaptor RHS) |
PreservedAnalyses | run (LazyCallGraph::SCC *C, CGSCCAnalysisManager *AM) |
Runs the function pass across every function in the module. | |
Static Public Member Functions | |
static StringRef | name () |
Friends | |
void | swap (CGSCCToFunctionPassAdaptor &LHS, CGSCCToFunctionPassAdaptor &RHS) |
Adaptor that maps from a SCC to its functions.
Designed to allow composition of a FunctionPass(Manager) and a CGSCCPassManager. Note that if this pass is constructed with a pointer to a CGSCCAnalysisManager
it will run the FunctionAnalysisManagerCGSCCProxy
analysis prior to running the function pass over the SCC to enable a FunctionAnalysisManager
to be used within this run safely.
Definition at line 524 of file CGSCCPassManager.h.
llvm::CGSCCToFunctionPassAdaptor< FunctionPassT >::CGSCCToFunctionPassAdaptor | ( | FunctionPassT | Pass | ) | [inline, explicit] |
Definition at line 526 of file CGSCCPassManager.h.
llvm::CGSCCToFunctionPassAdaptor< FunctionPassT >::CGSCCToFunctionPassAdaptor | ( | const CGSCCToFunctionPassAdaptor< FunctionPassT > & | Arg | ) | [inline] |
Definition at line 530 of file CGSCCPassManager.h.
llvm::CGSCCToFunctionPassAdaptor< FunctionPassT >::CGSCCToFunctionPassAdaptor | ( | CGSCCToFunctionPassAdaptor< FunctionPassT > && | Arg | ) | [inline] |
Definition at line 532 of file CGSCCPassManager.h.
static StringRef llvm::CGSCCToFunctionPassAdaptor< FunctionPassT >::name | ( | ) | [inline, static] |
Definition at line 575 of file CGSCCPassManager.h.
CGSCCToFunctionPassAdaptor& llvm::CGSCCToFunctionPassAdaptor< FunctionPassT >::operator= | ( | CGSCCToFunctionPassAdaptor< FunctionPassT > | RHS | ) | [inline] |
Definition at line 538 of file CGSCCPassManager.h.
References std::swap().
PreservedAnalyses llvm::CGSCCToFunctionPassAdaptor< FunctionPassT >::run | ( | LazyCallGraph::SCC * | C, |
CGSCCAnalysisManager * | AM | ||
) | [inline] |
Runs the function pass across every function in the module.
Definition at line 544 of file CGSCCPassManager.h.
References llvm::PreservedAnalyses::all(), llvm::CallingConv::C, llvm::detail::AnalysisManagerBase< DerivedT, IRUnitT >::getResult(), llvm::PreservedAnalyses::intersect(), llvm::detail::AnalysisManagerBase< DerivedT, IRUnitT >::invalidate(), N, and llvm::PreservedAnalyses::preserve().
void swap | ( | CGSCCToFunctionPassAdaptor< FunctionPassT > & | LHS, |
CGSCCToFunctionPassAdaptor< FunctionPassT > & | RHS | ||
) | [friend] |
Definition at line 534 of file CGSCCPassManager.h.