LLVM  8.0.1
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
[legend]
Collaboration diagram for llvm::FunctionToLoopPassAdaptor< LoopPassT >:
Collaboration graph
[legend]

Public Member Functions

 FunctionToLoopPassAdaptor (LoopPassT Pass, 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 139 of file LoopPassManager.h.

Constructor & Destructor Documentation

◆ FunctionToLoopPassAdaptor()

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

Definition at line 267 of file LoopPassManager.h.

Member Function Documentation

◆ run()

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

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