LLVM API Documentation
#include <LoopPass.h>
Public Member Functions | |
LoopPass (char &pid) | |
Pass * | createPrinterPass (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... | |
![]() | |
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) |
AnalysisResolver * | getResolver () const |
virtual void | getAnalysisUsage (AnalysisUsage &) const |
virtual void | releaseMemory () |
virtual void * | getAdjustedAnalysisPointer (AnalysisID ID) |
virtual ImmutablePass * | getAsImmutablePass () |
virtual PMDataManager * | getAsPMDataManager () |
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 const PassInfo * | lookupPassInfo (const void *TI) |
static const PassInfo * | lookupPassInfo (StringRef Arg) |
static Pass * | createPass (AnalysisID ID) |
Definition at line 29 of file LoopPass.h.
|
inlineexplicit |
Definition at line 31 of file LoopPass.h.
|
virtual |
Assign pass manager to manage this pass.
Reimplemented from llvm::Pass.
Definition at line 334 of file LoopPass.cpp.
References llvm::PMDataManager::add(), llvm::PMTopLevelManager::addIndirectPassManager(), llvm::PMStack::empty(), llvm::LPPassManager::getAsPass(), llvm::PMDataManager::getPassManagerType(), P, llvm::PMT_LoopPassManager, llvm::PMStack::pop(), llvm::PMDataManager::populateInheritedAnalysis(), llvm::PMStack::push(), llvm::PMTopLevelManager::schedulePass(), and llvm::PMStack::top().
|
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().
|
virtual |
getPrinterPass - Get a pass to print the function corresponding to a Loop.
Implements llvm::Pass.
Definition at line 307 of file LoopPass.cpp.
deleteAnalysisValue - Delete analysis info associated with value V.
Definition at line 83 of file LoopPass.h.
Referenced by llvm::LPPassManager::deleteSimpleAnalysisValue().
|
inlinevirtual |
Definition at line 51 of file LoopPass.h.
Referenced by llvm::LPPassManager::runOnFunction().
|
inlinevirtual |
Definition at line 45 of file LoopPass.h.
Referenced by llvm::LPPassManager::runOnFunction().
|
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.
|
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().
|
pure virtual |
Referenced by llvm::LPPassManager::runOnFunction().