14 #ifndef LLVM_IR_TYPEFINDER_H
15 #define LLVM_IR_TYPEFINDER_H
37 std::vector<StructType*> StructTypes;
43 void run(
const Module &M,
bool onlyNamed);
46 typedef std::vector<StructType*>::iterator
iterator;
55 bool empty()
const {
return StructTypes.empty(); }
56 size_t size()
const {
return StructTypes.size(); }
64 void incorporateType(
Type *Ty);
70 void incorporateValue(
const Value *V);
74 void incorporateMDNode(
const MDNode *V);
A Module instance is used to store all the information related to an LLVM module. ...
StructType - Class to represent struct types.
const_iterator end() const
const_iterator begin() const
The instances of the Type class are immutable: once they are created, they are never changed...
StructType *& operator[](unsigned Idx)
void run(const Module &M, bool onlyNamed)
std::vector< StructType * >::const_iterator const_iterator
std::vector< StructType * >::iterator iterator
iterator erase(iterator I, iterator E)
LLVM Value Representation.
TypeFinder - Walk over a module, identifying all of the types that are used by the module...