Lines Matching refs:KeyTy
45 struct KeyTy { struct
48 KeyTy(const APInt& V, Type* Ty) : val(V), type(Ty) {} in KeyTy() function
49 bool operator==(const KeyTy& that) const {
52 bool operator!=(const KeyTy& that) const {
55 friend hash_code hash_value(const KeyTy &Key) { in hash_value() argument
59 static inline KeyTy getEmptyKey() { return KeyTy(APInt(1,0), 0); } in getEmptyKey()
60 static inline KeyTy getTombstoneKey() { return KeyTy(APInt(1,1), 0); } in getTombstoneKey()
61 static unsigned getHashValue(const KeyTy &Key) { in getHashValue()
64 static bool isEqual(const KeyTy &LHS, const KeyTy &RHS) { in isEqual()
70 struct KeyTy { struct
72 KeyTy(const APFloat& V) : val(V){} in KeyTy() function
73 bool operator==(const KeyTy& that) const {
76 bool operator!=(const KeyTy& that) const {
79 friend hash_code hash_value(const KeyTy &Key) { in hash_value() argument
83 static inline KeyTy getEmptyKey() { in getEmptyKey()
84 return KeyTy(APFloat(APFloat::Bogus,1)); in getEmptyKey()
86 static inline KeyTy getTombstoneKey() { in getTombstoneKey()
87 return KeyTy(APFloat(APFloat::Bogus,2)); in getTombstoneKey()
89 static unsigned getHashValue(const KeyTy &Key) { in getHashValue()
92 static bool isEqual(const KeyTy &LHS, const KeyTy &RHS) { in isEqual()
98 struct KeyTy { struct
101 KeyTy(const ArrayRef<Type*>& E, bool P) : in KeyTy() function
103 KeyTy(const StructType* ST) : in KeyTy() argument
106 bool operator==(const KeyTy& that) const {
113 bool operator!=(const KeyTy& that) const {
123 static unsigned getHashValue(const KeyTy& Key) { in getHashValue()
129 return getHashValue(KeyTy(ST)); in getHashValue()
131 static bool isEqual(const KeyTy& LHS, const StructType *RHS) { in isEqual()
134 return LHS == KeyTy(RHS); in isEqual()
142 struct KeyTy { struct
146 KeyTy(const Type* R, const ArrayRef<Type*>& P, bool V) : in KeyTy() function
148 KeyTy(const FunctionType* FT) : in KeyTy() argument
152 bool operator==(const KeyTy& that) const {
161 bool operator!=(const KeyTy& that) const {
171 static unsigned getHashValue(const KeyTy& Key) { in getHashValue()
178 return getHashValue(KeyTy(FT)); in getHashValue()
180 static bool isEqual(const KeyTy& LHS, const FunctionType *RHS) { in isEqual()
183 return LHS == KeyTy(RHS); in isEqual()
242 typedef DenseMap<DenseMapAPIntKeyInfo::KeyTy, ConstantInt*,
246 typedef DenseMap<DenseMapAPFloatKeyInfo::KeyTy, ConstantFP*,