LLVM
8.0.1
|
TypeFinder - Walk over a module, identifying all of the types that are used by the module. More...
#include "llvm/IR/TypeFinder.h"
Public Types | |
using | iterator = std::vector< StructType * >::iterator |
using | const_iterator = std::vector< StructType * >::const_iterator |
Public Member Functions | |
TypeFinder ()=default | |
void | run (const Module &M, bool onlyNamed) |
void | clear () |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
bool | empty () const |
size_t | size () const |
iterator | erase (iterator I, iterator E) |
StructType *& | operator[] (unsigned Idx) |
DenseSet< const MDNode * > & | getVisitedMetadata () |
TypeFinder - Walk over a module, identifying all of the types that are used by the module.
Definition at line 31 of file TypeFinder.h.
using llvm::TypeFinder::const_iterator = std::vector<StructType*>::const_iterator |
Definition at line 48 of file TypeFinder.h.
using llvm::TypeFinder::iterator = std::vector<StructType*>::iterator |
Definition at line 47 of file TypeFinder.h.
|
default |
|
inline |
Definition at line 50 of file TypeFinder.h.
Referenced by llvm::Module::getIdentifiedStructTypes().
|
inline |
Definition at line 53 of file TypeFinder.h.
void TypeFinder::clear | ( | ) |
Definition at line 85 of file TypeFinder.cpp.
References C, llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::clear(), E, llvm::SmallVectorBase::empty(), llvm::Value::getType(), I, llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::insert(), N, llvm::User::operands(), llvm::MDNode::operands(), llvm::SmallVectorImpl< T >::pop_back_val(), llvm::SmallVectorTemplateBase< T >::push_back(), llvm::Type::subtype_rbegin(), and llvm::Type::subtype_rend().
|
inline |
Definition at line 56 of file TypeFinder.h.
|
inline |
Definition at line 51 of file TypeFinder.h.
Referenced by llvm::Module::getIdentifiedStructTypes().
|
inline |
Definition at line 54 of file TypeFinder.h.
Definition at line 58 of file TypeFinder.h.
Definition at line 62 of file TypeFinder.h.
|
inline |
Definition at line 60 of file TypeFinder.h.
Definition at line 32 of file TypeFinder.cpp.
References llvm::Module::aliases(), G, llvm::Module::globals(), I, and llvm::RISCVFenceField::O.
Referenced by llvm::Module::getIdentifiedStructTypes(), llvm::IRMover::IRMover(), and StripTypeNames().
|
inline |
Definition at line 57 of file TypeFinder.h.
Referenced by StripTypeNames().