LLVM API Documentation
#include <FindUsedTypes.h>
Inheritance diagram for llvm::FindUsedTypes:
Public Member Functions | |
const std::set< const Type * > & | getTypes () const |
void | print (std::ostream &o, const Module *M) const |
bool | runOnModule (Module &M) |
run - This incorporates all types used by the specified module | |
virtual void | getAnalysisUsage (AnalysisUsage &AU) const |
getAnalysisUsage - We do not modify anything. | |
Static Public Member Functions | |
static void | stub () |
Definition at line 24 of file FindUsedTypes.h.
|
getAnalysisUsage - We do not modify anything.
Reimplemented from llvm::Pass. Definition at line 53 of file FindUsedTypes.h. References llvm::AnalysisUsage::setPreservesAll(). |
|
getTypes - After the pass has been run, return the set containing all of the types used in the module. Definition at line 30 of file FindUsedTypes.h. |
|
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 96 of file FindUsedTypes.cpp. |
|
run - This incorporates all types used by the specified module
Implements llvm::ModulePass. Definition at line 61 of file FindUsedTypes.cpp. References llvm::Module::begin(), E, llvm::Module::end(), F, llvm::Module::gbegin(), llvm::Module::gend(), llvm::Value::getType(), I, llvm::inst_begin(), llvm::inst_end(), llvm::User::op_begin(), and llvm::User::op_end(). |
|
Definition at line 29 of file FindUsedTypes.cpp. |