LLVM API Documentation
#include <CallGraphSCCPass.h>
Inheritance diagram for llvm::CallGraphSCCPass:
Public Member Functions | |
virtual bool | doInitialization (CallGraph &CG) |
virtual bool | runOnSCC (const std::vector< CallGraphNode * > &SCC)=0 |
virtual bool | doFinalization (CallGraph &CG) |
virtual bool | runOnModule (Module &M) |
virtual void | getAnalysisUsage (AnalysisUsage &Info) const |
Definition at line 31 of file CallGraphSCCPass.h.
virtual bool llvm::CallGraphSCCPass::doFinalization | ( | CallGraph & | CG | ) | [inline, virtual] |
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 48 of file CallGraphSCCPass.h.
Referenced by runOnModule().
virtual bool llvm::CallGraphSCCPass::doInitialization | ( | CallGraph & | CG | ) | [inline, virtual] |
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 35 of file CallGraphSCCPass.h.
Referenced by runOnModule().
void CallGraphSCCPass::getAnalysisUsage | ( | AnalysisUsage & | Info | ) | 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.
Definition at line 26 of file CallGraphSCCPass.cpp.
References llvm::AnalysisUsage::addPreserved(), and llvm::AnalysisUsage::addRequired().
bool CallGraphSCCPass::runOnModule | ( | Module & | M | ) | [virtual] |
run - Run this pass, returning true if a modification was made to the module argument. This is implemented in terms of the runOnSCC method.
Implements llvm::ModulePass.
Definition at line 31 of file CallGraphSCCPass.cpp.
References Changed, doFinalization(), doInitialization(), E, I, runOnSCC(), llvm::scc_begin(), and llvm::scc_end().
virtual bool llvm::CallGraphSCCPass::runOnSCC | ( | const std::vector< CallGraphNode * > & | 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.
Implemented in llvm::Inliner.
Referenced by runOnModule().