LLVM 19.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

Public Types

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

Public Member Functions

 CGSCCToFunctionPassAdaptor (std::unique_ptr< PassConceptT > Pass, bool EagerlyInvalidate, bool NoRerun)
 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.
void printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName)
- Public Member Functions inherited from llvm::PassInfoMixin< CGSCCToFunctionPassAdaptor >
void printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName)

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.


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

Member Typedef Documentation

◆ PassConceptT

Definition at line 447 of file CGSCCPassManager.h.

Constructor & Destructor Documentation

◆ CGSCCToFunctionPassAdaptor() [1/2]

llvm::CGSCCToFunctionPassAdaptor::CGSCCToFunctionPassAdaptor ( std::unique_ptr< PassConceptT Pass,
bool  EagerlyInvalidate,
bool  NoRerun 

Definition at line 449 of file CGSCCPassManager.h.

◆ CGSCCToFunctionPassAdaptor() [2/2]

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

Definition at line 454 of file CGSCCPassManager.h.

Member Function Documentation

◆ isRequired()

static bool llvm::CGSCCToFunctionPassAdaptor::isRequired ( )

Definition at line 490 of file CGSCCPassManager.h.

◆ operator=()

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

Definition at line 463 of file CGSCCPassManager.h.

References RHS.

◆ printPipeline()

void llvm::CGSCCToFunctionPassAdaptor::printPipeline ( raw_ostream OS,
function_ref< StringRef(StringRef)>  MapClassName2PassName 

Definition at line 472 of file CGSCCPassManager.h.

References OS.

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

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