LLVM API Documentation

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

#include <CallGraphSCCPass.h>

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

Public Member Functions

 CallGraphSCCPass (char &pid)
 
PasscreatePrinterPass (raw_ostream &O, const std::string &Banner) const
 
virtual bool doInitialization (CallGraph &CG)
 
virtual bool runOnSCC (CallGraphSCC &SCC)=0
 
virtual bool doFinalization (CallGraph &CG)
 
virtual void assignPassManager (PMStack &PMS, PassManagerType PMT)
 Assign pass manager to manager this pass. More...
 
virtual PassManagerType getPotentialPassManagerType () const
 Return what kind of Pass Manager can manage this pass. More...
 
virtual void getAnalysisUsage (AnalysisUsage &Info) const
 
- 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
 
virtual void preparePassManager (PMStack &)
 Check if available pass managers are suitable for this pass or not. More...
 
void setResolver (AnalysisResolver *AR)
 
AnalysisResolvergetResolver () 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 34 of file CallGraphSCCPass.h.

Constructor & Destructor Documentation

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

Definition at line 36 of file CallGraphSCCPass.h.

Member Function Documentation

void CallGraphSCCPass::assignPassManager ( PMStack PMS,
PassManagerType  PMT 
)
virtual
Pass * CallGraphSCCPass::createPrinterPass ( raw_ostream O,
const std::string &  Banner 
) const
virtual

createPrinterPass - Get a pass that prints the Module corresponding to a CallGraph.

Implements llvm::Pass.

Definition at line 610 of file CallGraphSCCPass.cpp.

virtual bool llvm::CallGraphSCCPass::doFinalization ( CallGraph CG)
inlinevirtual

doFinalization - This method is called after the SCC's of the program has been processed, allowing the pass to do final cleanup as necessary.

Reimplemented in llvm::Inliner.

Definition at line 63 of file CallGraphSCCPass.h.

virtual bool llvm::CallGraphSCCPass::doInitialization ( CallGraph CG)
inlinevirtual

doInitialization - This method is called before the SCC's of the program has been processed, allowing the pass to do initialization as necessary.

Definition at line 47 of file CallGraphSCCPass.h.

void CallGraphSCCPass::getAnalysisUsage ( AnalysisUsage AU) const
virtual

getAnalysisUsage - For this class, we declare that we require and preserve the call graph. If the derived class implements this method, it should always explicitly call the implementation here.

Reimplemented from llvm::Pass.

Reimplemented in llvm::InlineCostAnalysis, and llvm::Inliner.

Definition at line 572 of file CallGraphSCCPass.cpp.

References llvm::AnalysisUsage::addPreserved(), and llvm::AnalysisUsage::addRequired().

Referenced by llvm::Inliner::getAnalysisUsage(), and llvm::InlineCostAnalysis::getAnalysisUsage().

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

Return what kind of Pass Manager can manage this pass.

Reimplemented from llvm::Pass.

Definition at line 72 of file CallGraphSCCPass.h.

References llvm::PMT_CallGraphPassManager.

virtual bool llvm::CallGraphSCCPass::runOnSCC ( CallGraphSCC SCC)
pure virtual

runOnSCC - This method should be implemented by the subclass to perform whatever action is necessary for the specified SCC. Note that non-recursive (or only self-recursive) functions will have an SCC size of 1, where recursive portions of the call graph will have SCC size > 1.

SCC passes that add or delete functions to the SCC are required to update the SCC list, otherwise stale pointers may be dereferenced.

Implemented in llvm::InlineCostAnalysis, and llvm::Inliner.


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