LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Attributes | List of all members
llvm::FindUsedTypes Class Reference

#include <FindUsedTypes.h>

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

Public Member Functions

 FindUsedTypes ()
 
const SetVector< Type * > & getTypes () const
 
void print (raw_ostream &o, const Module *M) const
 
bool runOnModule (Module &M)
 run - This incorporates all types used by the specified module More...
 
virtual void getAnalysisUsage (AnalysisUsage &AU) const
 getAnalysisUsage - We do not modify anything. More...
 
- Public Member Functions inherited from llvm::ModulePass
PasscreatePrinterPass (raw_ostream &O, const std::string &Banner) const
 createPrinterPass - Get a module printer pass. More...
 
virtual void assignPassManager (PMStack &PMS, PassManagerType T)
 
virtual PassManagerType getPotentialPassManagerType () const
 Return what kind of Pass Manager can manage this pass. More...
 
 ModulePass (char &pid)
 
virtual ~ModulePass ()
 
- 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 &)
 
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)
 

Static Public Attributes

static char ID = 0
 

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 25 of file FindUsedTypes.h.

Constructor & Destructor Documentation

llvm::FindUsedTypes::FindUsedTypes ( )
inline

Member Function Documentation

virtual void llvm::FindUsedTypes::getAnalysisUsage ( AnalysisUsage AU) const
inlinevirtual

getAnalysisUsage - We do not modify anything.

Reimplemented from llvm::Pass.

Definition at line 59 of file FindUsedTypes.h.

References llvm::AnalysisUsage::setPreservesAll().

const SetVector<Type *>& llvm::FindUsedTypes::getTypes ( ) const
inline

getTypes - After the pass has been run, return the set containing all of the types used in the module.

Definition at line 36 of file FindUsedTypes.h.

void FindUsedTypes::print ( raw_ostream o,
const Module M 
) const
virtual

Print the types found in the module. If the optional Module parameter is passed in, then the types are printed symbolically if possible, using the symbol table from the module.

Reimplemented from llvm::Pass.

Definition at line 95 of file FindUsedTypes.cpp.

References I.

bool FindUsedTypes::runOnModule ( Module M)
virtual

Member Data Documentation

char FindUsedTypes::ID = 0
static

Definition at line 28 of file FindUsedTypes.h.


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