LLVM  12.0.0git
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
llvm::CGSCCToFunctionPassAdaptor Class Reference

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

#include "llvm/Analysis/CGSCCPassManager.h"

Inheritance diagram for llvm::CGSCCToFunctionPassAdaptor:
Inheritance graph
Collaboration diagram for llvm::CGSCCToFunctionPassAdaptor:
Collaboration graph

Public Types

using PassConceptT = detail::PassConcept< Function, FunctionAnalysisManager >

Public Member Functions

 CGSCCToFunctionPassAdaptor (std::unique_ptr< PassConceptT > Pass)
 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...

Static Public Member Functions

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


void swap (CGSCCToFunctionPassAdaptor &LHS, CGSCCToFunctionPassAdaptor &RHS)

Detailed Description

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

Member Typedef Documentation

◆ PassConceptT

Definition at line 462 of file CGSCCPassManager.h.

Constructor & Destructor Documentation

◆ CGSCCToFunctionPassAdaptor() [1/2]

llvm::CGSCCToFunctionPassAdaptor::CGSCCToFunctionPassAdaptor ( std::unique_ptr< PassConceptT Pass)

Definition at line 464 of file CGSCCPassManager.h.

◆ CGSCCToFunctionPassAdaptor() [2/2]

llvm::CGSCCToFunctionPassAdaptor::CGSCCToFunctionPassAdaptor ( CGSCCToFunctionPassAdaptor &&  Arg)

Definition at line 467 of file CGSCCPassManager.h.

Member Function Documentation

◆ isRequired()

static bool llvm::CGSCCToFunctionPassAdaptor::isRequired ( )

Definition at line 484 of file CGSCCPassManager.h.

◆ operator=()

CGSCCToFunctionPassAdaptor& llvm::CGSCCToFunctionPassAdaptor::operator= ( CGSCCToFunctionPassAdaptor  RHS)

Definition at line 475 of file CGSCCPassManager.h.

References std::swap().

◆ run()

PreservedAnalyses llvm::CGSCCToFunctionPassAdaptor::run ( LazyCallGraph::SCC C,
CGSCCAnalysisManager AM,
LazyCallGraph CG,
CGSCCUpdateResult UR 

Friends And Related Function Documentation

◆ swap

void swap ( CGSCCToFunctionPassAdaptor LHS,
CGSCCToFunctionPassAdaptor RHS 

Definition at line 470 of file CGSCCPassManager.h.

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