13 #ifndef LLVM_IR_TYPEFINDER_H 14 #define LLVM_IR_TYPEFINDER_H 37 std::vector<StructType*> StructTypes;
38 bool OnlyNamed =
false;
43 void run(
const Module &M,
bool onlyNamed);
46 using iterator = std::vector<StructType*>::iterator;
55 bool empty()
const {
return StructTypes.empty(); }
56 size_t size()
const {
return StructTypes.size(); }
66 void incorporateType(
Type *Ty);
72 void incorporateValue(
const Value *V);
76 void incorporateMDNode(
const MDNode *V);
81 #endif // LLVM_IR_TYPEFINDER_H This class represents lattice values for constants.
A Module instance is used to store all the information related to an LLVM module. ...
std::vector< StructType * >::const_iterator const_iterator
Class to represent struct types.
DenseSet< const MDNode * > & getVisitedMetadata()
const_iterator end() const
The instances of the Type class are immutable: once they are created, they are never changed...
StructType *& operator[](unsigned Idx)
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
std::vector< StructType * >::iterator iterator
void run(const Module &M, bool onlyNamed)
iterator erase(iterator I, iterator E)
LLVM Value Representation.
const_iterator begin() const
TypeFinder - Walk over a module, identifying all of the types that are used by the module...