Home | History | Annotate | Download | only in ADT

Lines Matching refs:Hash

11 // and not-owning string types that store their hash in addition to their string
29 /// A container which contains a StringRef plus a precomputed hash.
33 uint32_t Hash;
40 CachedHashStringRef(StringRef S, uint32_t Hash)
41 : P(S.data()), Size(S.size()), Hash(Hash) {
47 uint32_t hash() const { return Hash; }
58 assert(!isEqual(S, getEmptyKey()) && "Cannot hash the empty key!");
59 assert(!isEqual(S, getTombstoneKey()) && "Cannot hash the tombstone key!");
60 return S.hash();
64 return LHS.hash() == RHS.hash() &&
69 /// A container which contains a string, which it owns, plus a precomputed hash.
77 uint32_t Hash;
91 : P(EmptyOrTombstonePtr), Size(0), Hash(0) {
104 CachedHashString(StringRef S, uint32_t Hash)
105 : P(new char[S.size()]), Size(S.size()), Hash(Hash) {
112 : Size(Other.Size), Hash(Other.Hash) {
127 : P(Other.P), Size(Other.Size), Hash(Other.Hash) {
138 uint32_t hash() const { return Hash; }
142 return CachedHashStringRef(val(), Hash);
149 swap(LHS.Hash, RHS.Hash);
163 assert(!isEqual(S, getEmptyKey()) && "Cannot hash the empty key!");
164 assert(!isEqual(S, getTombstoneKey()) && "Cannot hash the tombstone key!");
165 return S.hash();
169 if (LHS.hash() != RHS.hash())