Home
last modified time | relevance | path

Searched refs:CachedHashStringRef (Results 1 – 4 of 4) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ADT/
H A DCachedHashString.h28 class CachedHashStringRef {
35 explicit CachedHashStringRef(StringRef S) in CachedHashStringRef() function
36 : CachedHashStringRef(S, DenseMapInfo<StringRef>::getHashValue(S)) {} in CachedHashStringRef()
38 CachedHashStringRef(StringRef S, uint32_t Hash) in CachedHashStringRef() function
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) {
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/MC/
H A DStringTableBuilder.h38 DenseMap<CachedHashStringRef, size_t> StringIndexMap;
54 size_t add(CachedHashStringRef S);
55 size_t add(StringRef S) { return add(CachedHashStringRef(S)); } in add()
67 size_t getOffset(CachedHashStringRef S) const;
69 return getOffset(CachedHashStringRef(S)); in getOffset()
76 return contains(CachedHashStringRef(S)); in contains()
78 bool contains(CachedHashStringRef S) const { in contains()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/MC/
H A DStringTableBuilder.cpp67 using StringPair = std::pair<CachedHashStringRef, size_t>;
178 StringIndexMap[CachedHashStringRef(" ")] = 0; in finalizeStringTable()
185 StringIndexMap[CachedHashStringRef("")] = 0; in finalizeStringTable()
193 size_t StringTableBuilder::getOffset(CachedHashStringRef S) const { in getOffset()
200 size_t StringTableBuilder::add(CachedHashStringRef S) { in add()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/DebugInfo/GSYM/
H A DGsymCreator.cpp298 CachedHashStringRef CHStr(S); in insertString()
308 CHStr = CachedHashStringRef{StringStorage.insert(S).first->getKey(), in insertString()