Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ADT/
H A DCachedHashString.h28 class CachedHashStringRef {
35 explicit CachedHashStringRef(StringRef S) in CachedHashStringRef() function
38 CachedHashStringRef(StringRef S, uint32_t Hash) in CachedHashStringRef() function
49 template <> struct DenseMapInfo<CachedHashStringRef> {
50 static CachedHashStringRef getEmptyKey() {
53 static CachedHashStringRef getTombstoneKey() {
56 static unsigned getHashValue(const CachedHashStringRef &S) {
61 static bool isEqual(const CachedHashStringRef &LHS,
62 const CachedHashStringRef &RHS) {
140 operator CachedHashStringRef() const {
[all …]
/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/contrib/llvm-project/llvm/lib/MC/
H A DStringTableBuilder.cpp68 using StringPair = std::pair<CachedHashStringRef, size_t>;
179 StringIndexMap[CachedHashStringRef(" ")] = 0; in finalizeStringTable()
186 StringIndexMap[CachedHashStringRef("")] = 0; in finalizeStringTable()
194 size_t StringTableBuilder::getOffset(CachedHashStringRef S) const { in getOffset()
201 size_t StringTableBuilder::add(CachedHashStringRef S) { in add()
/freebsd-13.1/contrib/llvm-project/lld/MachO/
H A DSymbolTable.h61 Symbol *find(llvm::CachedHashStringRef name);
62 Symbol *find(StringRef name) { return find(llvm::CachedHashStringRef(name)); } in find()
66 llvm::DenseMap<llvm::CachedHashStringRef, int> symMap;
H A DSymbolTable.cpp22 Symbol *SymbolTable::find(CachedHashStringRef cachedName) { in find()
31 auto p = symMap.insert({CachedHashStringRef(name), (int)symVector.size()}); in insert()
H A DDriverUtils.cpp206 static DenseMap<CachedHashStringRef, DylibFile *> loadedDylibs;
210 CachedHashStringRef path(mbref.getBufferIdentifier()); in loadDylib()
H A DConfig.h85 llvm::DenseSet<llvm::CachedHashStringRef> literals;
H A DInputSection.h217 llvm::CachedHashStringRef getCachedHashStringRef(size_t i) const { in getCachedHashStringRef()
H A DDriver.cpp940 literals.insert(CachedHashStringRef(symbolName)); in insert()
948 return literals.contains(CachedHashStringRef(symbolName)); in matchLiteral()
1345 for (const CachedHashStringRef &cachedName : config->exportedSymbols.literals) in link()
H A DWriter.cpp564 for (const CachedHashStringRef &cachedName : in treatSpecialUndefineds()
/freebsd-13.1/contrib/llvm-project/lld/ELF/
H A DSymbolTable.cpp36 int &idx1 = symMap[CachedHashStringRef(sym->getName())]; in wrap()
37 int &idx2 = symMap[CachedHashStringRef(real->getName())]; in wrap()
38 int &idx3 = symMap[CachedHashStringRef(wrap->getName())]; in wrap()
71 auto p = symMap.insert({CachedHashStringRef(name), (int)symVector.size()}); in insert()
105 auto it = symMap.find(CachedHashStringRef(name)); in find()
H A DSymbolTable.h64 llvm::DenseMap<llvm::CachedHashStringRef, const InputFile *> comdatGroups;
84 llvm::DenseMap<llvm::CachedHashStringRef, int> symMap;
H A DInputSection.h293 llvm::CachedHashStringRef getData(size_t i) const { in getData()
H A DSyntheticSections.h790 llvm::CachedHashStringRef name;
801 llvm::CachedHashStringRef name;
H A DInputFiles.cpp623 symtab->comdatGroups.try_emplace(CachedHashStringRef(signature), this) in initializeSections()
1750 symtab->comdatGroups.try_emplace(CachedHashStringRef(s.first), this) in parse()
H A DRelocations.cpp721 symtab->comdatGroups.lookup(CachedHashStringRef(signature))) in maybeReportDiscarded()
H A DSyntheticSections.cpp2860 std::vector<DenseMap<CachedHashStringRef, size_t>> map(numShards); in createSymbols()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objcopy/
H A DCommonConfig.h131 DenseSet<CachedHashStringRef> PosNames;
141 PosNames.insert(CachedHashStringRef(*MaybeName)); in addMatcher()
150 return (PosNames.contains(CachedHashStringRef(S)) || in matches()
/freebsd-13.1/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/
H A DGsymCreator.cpp308 CachedHashStringRef CHStr(S); in insertString()
318 CHStr = CachedHashStringRef{StringStorage.insert(S).first->getKey(), in insertString()
/freebsd-13.1/contrib/llvm-project/lld/COFF/
H A DSymbolTable.h132 llvm::DenseMap<llvm::CachedHashStringRef, Symbol *> symMap;
H A DSymbolTable.cpp524 Symbol *&sym = symMap[CachedHashStringRef(name)]; in insert()
810 return symMap.lookup(CachedHashStringRef(name)); in find()