LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
llvm::LoopPass Class Referenceabstract

#include <LoopPass.h>

Inheritance diagram for llvm::LoopPass:
Inheritance graph
[legend]
Collaboration diagram for llvm::LoopPass:
Collaboration graph
[legend]

Public Member Functions

 LoopPass (char &pid)
 
PasscreatePrinterPass (raw_ostream &O, const std::string &Banner) const
 
virtual bool runOnLoop (Loop *L, LPPassManager &LPM)=0
 
virtual bool doInitialization (Loop *L, LPPassManager &LPM)
 
virtual bool doFinalization ()
 
void preparePassManager (PMStack &PMS)
 Check if available pass managers are suitable for this pass or not. More...
 
virtual void assignPassManager (PMStack &PMS, PassManagerType PMT)
 Assign pass manager to manage this pass. More...
 
virtual PassManagerType getPotentialPassManagerType () const
 Return what kind of Pass Manager can manage this pass. More...
 
virtual void cloneBasicBlockAnalysis (BasicBlock *F, BasicBlock *T, Loop *L)
 
virtual void deleteAnalysisValue (Value *V, Loop *L)
 deleteAnalysisValue - Delete analysis info associated with value V. More...
 
- Public Member Functions inherited from llvm::Pass
 Pass (PassKind K, char &pid)
 
virtual ~Pass ()
 
PassKind getPassKind () const
 
virtual const char * getPassName () const
 
AnalysisID getPassID () const
 getPassID - Return the PassID number that corresponds to this pass. More...
 
virtual bool doInitialization (Module &)
 
virtual bool doFinalization (Module &)
 
virtual void print (raw_ostream &O, const Module *M) const
 
void dump () const
 
void setResolver (AnalysisResolver *AR)
 
AnalysisResolvergetResolver () const
 
virtual void getAnalysisUsage (AnalysisUsage &) const
 
virtual void releaseMemory ()
 
virtual void * getAdjustedAnalysisPointer (AnalysisID ID)
 
virtual ImmutablePassgetAsImmutablePass ()
 
virtual PMDataManagergetAsPMDataManager ()
 
virtual void verifyAnalysis () const
 
virtual void dumpPassStructure (unsigned Offset=0)
 
template<typename AnalysisType >
AnalysisType * getAnalysisIfAvailable () const
 
bool mustPreserveAnalysisID (char &AID) const
 
template<typename AnalysisType >
AnalysisType & getAnalysis () const
 
template<typename AnalysisType >
AnalysisType & getAnalysis (Function &F)
 
template<typename AnalysisType >
AnalysisType & getAnalysisID (AnalysisID PI) const
 
template<typename AnalysisType >
AnalysisType & getAnalysisID (AnalysisID PI, Function &F)
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::Pass
static const PassInfolookupPassInfo (const void *TI)
 
static const PassInfolookupPassInfo (StringRef Arg)
 
static PasscreatePass (AnalysisID ID)
 

Detailed Description

Definition at line 29 of file LoopPass.h.

Constructor & Destructor Documentation

llvm::LoopPass::LoopPass ( char &  pid)
inlineexplicit

Definition at line 31 of file LoopPass.h.

Member Function Documentation

void LoopPass::assignPassManager ( PMStack PMS,
PassManagerType  PMT 
)
virtual
virtual void llvm::LoopPass::cloneBasicBlockAnalysis ( BasicBlock F,
BasicBlock T,
Loop L 
)
inlinevirtual

SimpleAnalysis - Provides simple interface to update analysis info maintained by various passes. Note, if required this interface can be extracted into a separate abstract class but it would require additional use of multiple inheritance in Pass class hierarchy, something we are trying to avoid. Each loop pass can override these simple analysis hooks to update desired analysis information. cloneBasicBlockAnalysis - Clone analysis info associated with basic block.

Definition at line 80 of file LoopPass.h.

Referenced by llvm::LPPassManager::cloneBasicBlockSimpleAnalysis().

Pass * LoopPass::createPrinterPass ( raw_ostream O,
const std::string &  Banner 
) const
virtual

getPrinterPass - Get a pass to print the function corresponding to a Loop.

Implements llvm::Pass.

Definition at line 307 of file LoopPass.cpp.

virtual void llvm::LoopPass::deleteAnalysisValue ( Value V,
Loop L 
)
inlinevirtual

deleteAnalysisValue - Delete analysis info associated with value V.

Definition at line 83 of file LoopPass.h.

Referenced by llvm::LPPassManager::deleteSimpleAnalysisValue().

virtual bool llvm::LoopPass::doFinalization ( )
inlinevirtual

Definition at line 51 of file LoopPass.h.

Referenced by llvm::LPPassManager::runOnFunction().

virtual bool llvm::LoopPass::doInitialization ( Loop L,
LPPassManager LPM 
)
inlinevirtual

Definition at line 45 of file LoopPass.h.

Referenced by llvm::LPPassManager::runOnFunction().

virtual PassManagerType llvm::LoopPass::getPotentialPassManagerType ( ) const
inlinevirtual

Return what kind of Pass Manager can manage this pass.

Reimplemented from llvm::Pass.

Definition at line 66 of file LoopPass.h.

References llvm::PMT_LoopPassManager.

void LoopPass::preparePassManager ( PMStack )
virtual

Check if available pass managers are suitable for this pass or not.

Reimplemented from llvm::Pass.

Definition at line 318 of file LoopPass.cpp.

References llvm::PMStack::empty(), llvm::PMDataManager::getPassManagerType(), llvm::PMT_LoopPassManager, llvm::PMStack::pop(), llvm::PMDataManager::preserveHigherLevelAnalysis(), and llvm::PMStack::top().

virtual bool llvm::LoopPass::runOnLoop ( Loop L,
LPPassManager LPM 
)
pure virtual

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