Searched refs:CachedHashStringRef (Results 1 - 15 of 15) sorted by relevance

/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/MC/
H A DStringTableBuilder.h28 DenseMap<CachedHashStringRef, size_t> StringIndexMap;
44 size_t add(CachedHashStringRef S);
45 size_t add(StringRef S) { return add(CachedHashStringRef(S)); }
57 size_t getOffset(CachedHashStringRef S) const;
59 return getOffset(CachedHashStringRef(S));
66 return contains(CachedHashStringRef(S));
68 bool contains(CachedHashStringRef S) const {
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/ADT/
H A DCachedHashString.h9 // This file defines CachedHashString and CachedHashStringRef. These are owning
28 class CachedHashStringRef { class in namespace:llvm
35 explicit CachedHashStringRef(StringRef S) function in class:llvm::CachedHashStringRef
36 : CachedHashStringRef(S, DenseMapInfo<StringRef>::getHashValue(S)) {}
38 CachedHashStringRef(StringRef S, uint32_t Hash) function in class:llvm::CachedHashStringRef
49 template <> struct DenseMapInfo<CachedHashStringRef> {
50 static CachedHashStringRef getEmptyKey() {
51 return CachedHashStringRef(DenseMapInfo<StringRef>::getEmptyKey(), 0);
53 static CachedHashStringRef getTombstoneKey() {
54 return CachedHashStringRef(DenseMapInf
[all...]
/freebsd-13-stable/contrib/llvm-project/lld/ELF/
H A DSymbolTable.h64 llvm::DenseMap<llvm::CachedHashStringRef, const InputFile *> comdatGroups;
82 llvm::DenseMap<llvm::CachedHashStringRef, int> symMap;
H A DSymbolTable.cpp36 int &idx1 = symMap[CachedHashStringRef(sym->getName())];
37 int &idx2 = symMap[CachedHashStringRef(real->getName())];
38 int &idx3 = symMap[CachedHashStringRef(wrap->getName())];
69 auto p = symMap.insert({CachedHashStringRef(name), (int)symVector.size()});
103 auto it = symMap.find(CachedHashStringRef(name));
H A DInputSection.h292 llvm::CachedHashStringRef getData(size_t i) const {
H A DSyntheticSections.h740 llvm::CachedHashStringRef name;
751 llvm::CachedHashStringRef name;
H A DInputFiles.cpp612 symtab->comdatGroups.try_emplace(CachedHashStringRef(signature), this)
1611 symtab->comdatGroups.try_emplace(CachedHashStringRef(s), this).second);
H A DRelocations.cpp698 symtab->comdatGroups.lookup(CachedHashStringRef(signature)))
H A DSyntheticSections.cpp2754 std::vector<DenseMap<CachedHashStringRef, size_t>> map(numShards);
/freebsd-13-stable/contrib/llvm-project/lld/MachO/
H A DSymbolTable.h41 llvm::DenseMap<llvm::CachedHashStringRef, int> symMap;
H A DSymbolTable.cpp20 auto it = symMap.find(llvm::CachedHashStringRef(name));
27 auto p = symMap.insert({CachedHashStringRef(name), (int)symVector.size()});
/freebsd-13-stable/contrib/llvm-project/llvm/lib/MC/
H A DStringTableBuilder.cpp62 using StringPair = std::pair<CachedHashStringRef, size_t>;
172 StringIndexMap[CachedHashStringRef("")] = 0;
180 size_t StringTableBuilder::getOffset(CachedHashStringRef S) const {
187 size_t StringTableBuilder::add(CachedHashStringRef S) {
/freebsd-13-stable/contrib/llvm-project/lld/COFF/
H A DSymbolTable.h129 llvm::DenseMap<llvm::CachedHashStringRef, Symbol *> symMap;
H A DSymbolTable.cpp480 Symbol *&sym = symMap[CachedHashStringRef(name)];
749 return symMap.lookup(CachedHashStringRef(name));
/freebsd-13-stable/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/
H A DGsymCreator.cpp275 CachedHashStringRef CHStr(S);

Completed in 110 milliseconds