LLVM  8.0.1
Public Member Functions | Friends | List of all members
llvm::CGSCCToFunctionPassAdaptor< FunctionPassT > Class Template Reference

Adaptor that maps from a SCC to its functions. More...

#include "llvm/Analysis/CGSCCPassManager.h"

Inheritance diagram for llvm::CGSCCToFunctionPassAdaptor< FunctionPassT >:
Inheritance graph
[legend]
Collaboration diagram for llvm::CGSCCToFunctionPassAdaptor< FunctionPassT >:
Collaboration graph
[legend]

Public Member Functions

 CGSCCToFunctionPassAdaptor (FunctionPassT Pass)
 
 CGSCCToFunctionPassAdaptor (const CGSCCToFunctionPassAdaptor &Arg)
 
 CGSCCToFunctionPassAdaptor (CGSCCToFunctionPassAdaptor &&Arg)
 
CGSCCToFunctionPassAdaptoroperator= (CGSCCToFunctionPassAdaptor RHS)
 
PreservedAnalyses run (LazyCallGraph::SCC &C, CGSCCAnalysisManager &AM, LazyCallGraph &CG, CGSCCUpdateResult &UR)
 Runs the function pass across every function in the module. More...
 

Friends

void swap (CGSCCToFunctionPassAdaptor &LHS, CGSCCToFunctionPassAdaptor &RHS)
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::PassInfoMixin< CGSCCToFunctionPassAdaptor< FunctionPassT > >
static StringRef name ()
 Gets the name of the pass we are mixed into. More...
 

Detailed Description

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

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 583 of file CGSCCPassManager.h.

Constructor & Destructor Documentation

◆ CGSCCToFunctionPassAdaptor() [1/3]

template<typename FunctionPassT >
llvm::CGSCCToFunctionPassAdaptor< FunctionPassT >::CGSCCToFunctionPassAdaptor ( FunctionPassT  Pass)
inlineexplicit

Definition at line 586 of file CGSCCPassManager.h.

◆ CGSCCToFunctionPassAdaptor() [2/3]

template<typename FunctionPassT >
llvm::CGSCCToFunctionPassAdaptor< FunctionPassT >::CGSCCToFunctionPassAdaptor ( const CGSCCToFunctionPassAdaptor< FunctionPassT > &  Arg)
inline

Definition at line 591 of file CGSCCPassManager.h.

◆ CGSCCToFunctionPassAdaptor() [3/3]

template<typename FunctionPassT >
llvm::CGSCCToFunctionPassAdaptor< FunctionPassT >::CGSCCToFunctionPassAdaptor ( CGSCCToFunctionPassAdaptor< FunctionPassT > &&  Arg)
inline

Definition at line 594 of file CGSCCPassManager.h.

Member Function Documentation

◆ operator=()

template<typename FunctionPassT >
CGSCCToFunctionPassAdaptor& llvm::CGSCCToFunctionPassAdaptor< FunctionPassT >::operator= ( CGSCCToFunctionPassAdaptor< FunctionPassT >  RHS)
inline

Definition at line 602 of file CGSCCPassManager.h.

References std::swap().

◆ run()

template<typename FunctionPassT >
PreservedAnalyses llvm::CGSCCToFunctionPassAdaptor< FunctionPassT >::run ( LazyCallGraph::SCC C,
CGSCCAnalysisManager AM,
LazyCallGraph CG,
CGSCCUpdateResult UR 
)
inline

Friends And Related Function Documentation

◆ swap

template<typename FunctionPassT >
void swap ( CGSCCToFunctionPassAdaptor< FunctionPassT > &  LHS,
CGSCCToFunctionPassAdaptor< FunctionPassT > &  RHS 
)
friend

Definition at line 597 of file CGSCCPassManager.h.


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