LLVM API Documentation

llvm::CallTargetFinder Class Reference

#include <CallTargets.h>

Inheritance diagram for llvm::CallTargetFinder:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual bool runOnModule (Module &M)
virtual void getAnalysisUsage (AnalysisUsage &AU) const
virtual void print (std::ostream &O, const Module *M) const
std::vector< Function
* >::iterator 
begin (CallSite cs)
std::vector< Function
* >::iterator 
end (CallSite cs)
std::list< CallSite >::iterator cs_begin ()
std::list< CallSite >::iterator cs_end ()
bool isComplete (CallSite cs) const

Detailed Description

Definition at line 26 of file CallTargets.h.


Member Function Documentation

bool CallTargetFinder::runOnModule ( Module M  )  [virtual]

runOnModule - Virtual method overriden by subclasses to process the module being operated on.

Implements llvm::ModulePass.

Definition at line 97 of file CallTargets.cpp.

References M.

void CallTargetFinder::getAnalysisUsage ( AnalysisUsage AU  )  const [virtual]

getAnalysisUsage - This function should be overriden by passes that need analysis information to do their job. If a pass specifies that it uses a particular analysis result to this function, it can then use the getAnalysis<AnalysisType>() function, below.

Reimplemented from llvm::Pass.

Definition at line 102 of file CallTargets.cpp.

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

void CallTargetFinder::print ( std::ostream &  O,
const Module M 
) const [virtual]

print - Print out the internal state of the pass. This is called by Analyze to print out the contents of an analysis. Otherwise it is not necessary to implement this method. Beware that the module pointer MAY be null. This automatically forwards to a virtual function that does not provide the Module* in case the analysis doesn't need it it can just be ignored.

Reimplemented from llvm::Pass.

Definition at line 73 of file CallTargets.cpp.

References llvm::Value::dump(), llvm::CallSite::getInstruction(), llvm::Value::getName(), llvm::BasicBlock::getParent(), llvm::Instruction::getParent(), and isComplete().

std::vector< Function * >::iterator CallTargetFinder::begin ( CallSite  cs  ) 

Definition at line 107 of file CallTargets.cpp.

std::vector< Function * >::iterator CallTargetFinder::end ( CallSite  cs  ) 

Definition at line 111 of file CallTargets.cpp.

std::list< CallSite >::iterator CallTargetFinder::cs_begin (  ) 

Definition at line 119 of file CallTargets.cpp.

std::list< CallSite >::iterator CallTargetFinder::cs_end (  ) 

Definition at line 123 of file CallTargets.cpp.

bool CallTargetFinder::isComplete ( CallSite  cs  )  const

Definition at line 115 of file CallTargets.cpp.

Referenced by print().


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