Searched refs:CachedHashStringRef (Results 1 – 3 of 3) sorted by relevance
29 class CachedHashStringRef {36 explicit CachedHashStringRef(StringRef S) in CachedHashStringRef() function37 : CachedHashStringRef(S, DenseMapInfo<StringRef>::getHashValue(S)) {} in CachedHashStringRef()39 CachedHashStringRef(StringRef S, uint32_t Hash) in CachedHashStringRef() function50 template <> struct DenseMapInfo<CachedHashStringRef> {51 static CachedHashStringRef getEmptyKey() {52 return CachedHashStringRef(DenseMapInfo<StringRef>::getEmptyKey(), 0);54 static CachedHashStringRef getTombstoneKey() {55 return CachedHashStringRef(DenseMapInfo<StringRef>::getTombstoneKey(), 1);57 static unsigned getHashValue(const CachedHashStringRef &S) {[all …]
28 DenseMap<CachedHashStringRef, size_t> StringIndexMap;44 size_t add(CachedHashStringRef S);45 size_t add(StringRef S) { return add(CachedHashStringRef(S)); } in add()57 size_t getOffset(CachedHashStringRef S) const;59 return getOffset(CachedHashStringRef(S)); in getOffset()
62 using StringPair = std::pair<CachedHashStringRef, size_t>;172 StringIndexMap[CachedHashStringRef("")] = 0; in finalizeStringTable()180 size_t StringTableBuilder::getOffset(CachedHashStringRef S) const { in getOffset()187 size_t StringTableBuilder::add(CachedHashStringRef S) { in add()