Lines Matching defs:CachedHashStringRef
9 // This file defines CachedHashString and CachedHashStringRef. These are owning
28 class CachedHashStringRef {
35 explicit CachedHashStringRef(StringRef S)
36 : CachedHashStringRef(S, DenseMapInfo<StringRef>::getHashValue(S)) {}
38 CachedHashStringRef(StringRef S, uint32_t Hash)
49 template <> struct DenseMapInfo<CachedHashStringRef> {
50 static CachedHashStringRef getEmptyKey() {
51 return CachedHashStringRef(DenseMapInfo<StringRef>::getEmptyKey(), 0);
53 static CachedHashStringRef getTombstoneKey() {
54 return CachedHashStringRef(DenseMapInfo<StringRef>::getTombstoneKey(), 1);
56 static unsigned getHashValue(const CachedHashStringRef &S) {
61 static bool isEqual(const CachedHashStringRef &LHS,
62 const CachedHashStringRef &RHS) {
140 operator CachedHashStringRef() const {
141 return CachedHashStringRef(val(), Hash);