LLVM API Documentation
#include <CallGraphSCCPass.h>
Inheritance diagram for llvm::CallGraphSCCPass:


Public Member Functions | |
| CallGraphSCCPass (intptr_t pid) | |
| virtual bool | doInitialization (CallGraph &CG) |
| virtual bool | runOnSCC (const std::vector< CallGraphNode * > &SCC)=0 |
| virtual bool | doFinalization (CallGraph &CG) |
| virtual void | assignPassManager (PMStack &PMS, PassManagerType PMT=PMT_CallGraphPassManager) |
| Assign pass manager to manager this pass. | |
| virtual PassManagerType | getPotentialPassManagerType () const |
| Return what kind of Pass Manager can manage this pass. | |
| virtual void | getAnalysisUsage (AnalysisUsage &Info) const |
|
|
Definition at line 34 of file CallGraphSCCPass.h. |
|
||||||||||||
|
Assign pass manager to manager this pass.
Reimplemented from llvm::Pass. Definition at line 156 of file CallGraphSCCPass.cpp. References llvm::PMDataManager::add(), llvm::PMTopLevelManager::addIndirectPassManager(), llvm::PMStack::empty(), llvm::PMDataManager::getDepth(), llvm::PMDataManager::getPassManagerType(), llvm::PMDataManager::getTopLevelManager(), llvm::PMStack::pop(), llvm::PMStack::push(), llvm::PMTopLevelManager::schedulePass(), and llvm::PMStack::top(). |
|
|
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 51 of file CallGraphSCCPass.h. Referenced by CGPassManager::doFinalization(). |
|
|
doInitialization - This method is called before the SCC's of the program has been processed, allowing the pass to do initialization as necessary. Reimplemented in SimpleInliner. Definition at line 38 of file CallGraphSCCPass.h. Referenced by CGPassManager::doInitialization(). |
|
|
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::Inliner, ArgPromotion, and SRETPromotion. Definition at line 194 of file CallGraphSCCPass.cpp. References llvm::AnalysisUsage::addPreserved(), and llvm::AnalysisUsage::addRequired(). Referenced by llvm::Inliner::getAnalysisUsage(). |
|
|
Return what kind of Pass Manager can manage this pass.
Reimplemented from llvm::Pass. Definition at line 60 of file CallGraphSCCPass.h. References llvm::PassManagerType. |
|
|
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. Implemented in llvm::Inliner, ArgPromotion, PruneEH, and SRETPromotion. Referenced by CGPassManager::runOnModule(). |