LLVM API Documentation


Public Types | |
| typedef std::pair< const Type *, ValType > | MapKey |
| typedef std::map< MapKey, Constant * > | MapTy |
| typedef std::map< Constant *, typename MapTy::iterator > | InverseMapTy |
| typedef std::map< const Type *, typename MapTy::iterator > | AbstractTypeMapTy |
Public Member Functions | |
| MapTy::iterator | map_end () |
| MapTy::iterator | InsertOrGetItem (std::pair< MapKey, Constant * > &InsertVal, bool &Exists) |
| ConstantClass * | getOrCreate (const TypeClass *Ty, const ValType &V) |
| void | remove (ConstantClass *CP) |
| void | MoveConstantToNewSlot (ConstantClass *C, typename MapTy::iterator I) |
| void | refineAbstractType (const DerivedType *OldTy, const Type *NewTy) |
| void | typeBecameConcrete (const DerivedType *AbsTy) |
| void | dump () const |
|
|||||
|
Definition at line 1031 of file Constants.cpp. |
|
|||||
|
Definition at line 1030 of file Constants.cpp. |
|
|||||
|
Definition at line 1028 of file Constants.cpp. |
|
|||||
|
Definition at line 1029 of file Constants.cpp. |
|
|||||||||
|
Implements llvm::AbstractTypeUser. Definition at line 1229 of file Constants.cpp. References DOUT. |
|
||||||||||||||||
|
getOrCreate - Return the specified constant from the map, creating it if necessary. Definition at line 1089 of file Constants.cpp. References Lookup(). |
|
||||||||||||||||
|
InsertOrGetItem - Return an iterator for the specified element. If the element exists in the map, the returned iterator points to the entry and Exists=true. If not, the iterator points to the newly inserted entry and returns Exists=false. Newly inserted entries have I->second == 0, and should be filled in. Definition at line 1056 of file Constants.cpp. |
|
|||||||||
|
Definition at line 1049 of file Constants.cpp. |
|
||||||||||||||||
|
MoveConstantToNewSlot - If we are about to change C to be the element specified by I, update our internal data structures to reflect this fact. Definition at line 1175 of file Constants.cpp. |
|
||||||||||||||||
|
refineAbstractType - The callback method invoked when an abstract type is resolved to another type. An object must override this method to update its internal state to reference NewType instead of OldType. Implements llvm::AbstractTypeUser. Definition at line 1203 of file Constants.cpp. |
|
||||||||||
|
Definition at line 1121 of file Constants.cpp. |
|
||||||||||
|
The other case which AbstractTypeUsers must be aware of is when a type makes the transition from being abstract (where it has clients on it's AbstractTypeUsers list) to concrete (where it does not). This method notifies ATU's when this occurs for a type. Implements llvm::AbstractTypeUser. Definition at line 1225 of file Constants.cpp. References llvm::Type::removeAbstractTypeUser(). |