Home | History | Annotate | Download | only in VMCore

Lines Matching refs:KeyTy

44   struct KeyTy {
47 KeyTy(const APInt& V, Type* Ty) : val(V), type(Ty) {}
48 KeyTy(const KeyTy& that) : val(that.val), type(that.type) {}
49 bool operator==(const KeyTy& that) const {
52 bool operator!=(const KeyTy& that) const {
55 friend hash_code hash_value(const KeyTy &Key) {
59 static inline KeyTy getEmptyKey() { return KeyTy(APInt(1,0), 0); }
60 static inline KeyTy getTombstoneKey() { return KeyTy(APInt(1,1), 0); }
61 static unsigned getHashValue(const KeyTy &Key) {
64 static bool isEqual(const KeyTy &LHS, const KeyTy &RHS) {
70 struct KeyTy {
72 KeyTy(const APFloat& V) : val(V){}
73 KeyTy(const KeyTy& that) : val(that.val) {}
74 bool operator==(const KeyTy& that) const {
77 bool operator!=(const KeyTy& that) const {
80 friend hash_code hash_value(const KeyTy &Key) {
84 static inline KeyTy getEmptyKey() {
85 return KeyTy(APFloat(APFloat::Bogus,1));
87 static inline KeyTy getTombstoneKey() {
88 return KeyTy(APFloat(APFloat::Bogus,2));
90 static unsigned getHashValue(const KeyTy &Key) {
93 static bool isEqual(const KeyTy &LHS, const KeyTy &RHS) {
99 struct KeyTy {
102 KeyTy(const ArrayRef<Type*>& E, bool P) :
104 KeyTy(const KeyTy& that) :
106 KeyTy(const StructType* ST) :
109 bool operator==(const KeyTy& that) const {
116 bool operator!=(const KeyTy& that) const {
126 static unsigned getHashValue(const KeyTy& Key) {
132 return getHashValue(KeyTy(ST));
134 static bool isEqual(const KeyTy& LHS, const StructType *RHS) {
137 return LHS == KeyTy(RHS);
145 struct KeyTy {
149 KeyTy(const Type* R, const ArrayRef<Type*>& P, bool V) :
151 KeyTy(const KeyTy& that) :
155 KeyTy(const FunctionType* FT) :
159 bool operator==(const KeyTy& that) const {
168 bool operator!=(const KeyTy& that) const {
178 static unsigned getHashValue(const KeyTy& Key) {
185 return getHashValue(KeyTy(FT));
187 static bool isEqual(const KeyTy& LHS, const FunctionType *RHS) {
190 return LHS == KeyTy(RHS);
249 typedef DenseMap<DenseMapAPIntKeyInfo::KeyTy, ConstantInt*,
253 typedef DenseMap<DenseMapAPFloatKeyInfo::KeyTy, ConstantFP*,