LLVM API Documentation
#include <FindUsedTypes.h>
Public Member Functions | |
FindUsedTypes () | |
const SetVector< Type * > & | getTypes () const |
void | print (raw_ostream &o, const Module *M) const override |
bool | runOnModule (Module &M) override |
run - This incorporates all types used by the specified module | |
void | getAnalysisUsage (AnalysisUsage &AU) const override |
getAnalysisUsage - We do not modify anything. | |
Static Public Attributes | |
static char | ID = 0 |
Definition at line 25 of file FindUsedTypes.h.
llvm::FindUsedTypes::FindUsedTypes | ( | ) | [inline] |
Definition at line 29 of file FindUsedTypes.h.
References llvm::PassRegistry::getPassRegistry(), and llvm::initializeFindUsedTypesPass().
void llvm::FindUsedTypes::getAnalysisUsage | ( | AnalysisUsage & | AU | ) | const [inline, override, virtual] |
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 [override, 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 94 of file FindUsedTypes.cpp.
References llvm::SetVector< T, Vector, Set >::begin(), llvm::SetVector< T, Vector, Set >::end(), and I.
bool FindUsedTypes::runOnModule | ( | Module & | M | ) | [override, virtual] |
run - This incorporates all types used by the specified module
Implements llvm::ModulePass.
Definition at line 58 of file FindUsedTypes.cpp.
References llvm::Module::begin(), llvm::SetVector< T, Vector, Set >::clear(), llvm::Module::end(), F(), llvm::Value::getType(), llvm::Module::global_begin(), llvm::Module::global_end(), I, llvm::ARM_PROC::IE, llvm::inst_begin(), llvm::inst_end(), llvm::AArch64CC::MI, llvm::User::op_begin(), and llvm::User::op_end().
char FindUsedTypes::ID = 0 [static] |
Definition at line 28 of file FindUsedTypes.h.