LLVM  11.0.0git
Public Member Functions | List of all members
llvm::FunctionToLoopPassAdaptor< LoopPassT > Class Template Reference

Adaptor that maps from a function to its loops. More...

#include "llvm/Transforms/Scalar/LoopPassManager.h"

Inheritance diagram for llvm::FunctionToLoopPassAdaptor< LoopPassT >:
Inheritance graph
Collaboration diagram for llvm::FunctionToLoopPassAdaptor< LoopPassT >:
Collaboration graph

Public Member Functions

 FunctionToLoopPassAdaptor (LoopPassT Pass, bool UseMemorySSA=false, bool DebugLogging=false)
PreservedAnalyses run (Function &F, FunctionAnalysisManager &AM)
 Runs the loop passes across every loop in the function. More...

Additional Inherited Members

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

Detailed Description

template<typename LoopPassT>
class llvm::FunctionToLoopPassAdaptor< LoopPassT >

Adaptor that maps from a function to its loops.

Designed to allow composition of a LoopPass(Manager) and a FunctionPassManager. Note that if this pass is constructed with a FunctionAnalysisManager it will run the LoopAnalysisManagerFunctionProxy analysis prior to running the loop passes over the function to enable a LoopAnalysisManager to be used within this run safely.

Definition at line 106 of file LoopPassManager.h.

Constructor & Destructor Documentation

◆ FunctionToLoopPassAdaptor()

template<typename LoopPassT>
llvm::FunctionToLoopPassAdaptor< LoopPassT >::FunctionToLoopPassAdaptor ( LoopPassT  Pass,
bool  UseMemorySSA = false,
bool  DebugLogging = false 

Definition at line 234 of file LoopPassManager.h.

Member Function Documentation

◆ run()

template<typename LoopPassT>
PreservedAnalyses llvm::FunctionToLoopPassAdaptor< LoopPassT >::run ( Function F,
FunctionAnalysisManager AM 

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