Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DCachedHashString.h29 class CachedHashStringRef {
36 explicit CachedHashStringRef(StringRef S) in CachedHashStringRef() function
37 : CachedHashStringRef(S, DenseMapInfo<StringRef>::getHashValue(S)) {} in CachedHashStringRef()
39 CachedHashStringRef(StringRef S, uint32_t Hash) in CachedHashStringRef() function
50 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 …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/
DStringTableBuilder.h28 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()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DStringTableBuilder.cpp62 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()