Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A 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 …]
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DStringTableBuilder.h42 DenseMap<CachedHashStringRef, uint8_t> StringPriorityMap;
43 DenseMap<CachedHashStringRef, size_t> StringIndexMap;
62 LLVM_ABI size_t add(CachedHashStringRef S, uint8_t Priority = 0);
64 return add(CachedHashStringRef(S), Priority);
77 LLVM_ABI size_t getOffset(CachedHashStringRef S) const;
79 return getOffset(CachedHashStringRef(S)); in getOffset()
85 bool contains(StringRef S) const { return contains(CachedHashStringRef(S)); } in contains()
86 bool contains(CachedHashStringRef S) const { return StringIndexMap.count(S); } in contains()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DStringTableBuilder.cpp69 using StringPair = std::pair<CachedHashStringRef, size_t>;
198 StringIndexMap[CachedHashStringRef(" ")] = 0; in finalizeStringTable()
205 StringIndexMap[CachedHashStringRef("")] = 0; in finalizeStringTable()
213 size_t StringTableBuilder::getOffset(CachedHashStringRef S) const { in getOffset()
220 size_t StringTableBuilder::add(CachedHashStringRef S, uint8_t Priority) { in add()
/freebsd/contrib/llvm-project/lld/ELF/
H A DSymbolTable.h65 llvm::DenseMap<llvm::CachedHashStringRef, SharedFile *> soNames;
70 llvm::DenseMap<llvm::CachedHashStringRef, const InputFile *> comdatGroups;
100 llvm::DenseMap<llvm::CachedHashStringRef, int> symMap;
H A DSymbolTable.cpp33 int &idx1 = symMap[CachedHashStringRef(sym->getName())]; in wrap()
34 int &idx2 = symMap[CachedHashStringRef(real->getName())]; in wrap()
35 int &idx3 = symMap[CachedHashStringRef(wrap->getName())]; in wrap()
75 auto p = symMap.insert({CachedHashStringRef(stem), (int)symVector.size()}); in insert()
110 auto it = symMap.find(CachedHashStringRef(name)); in find()
H A DBPSectionOrderer.cpp71 DenseMap<CachedHashStringRef, std::set<unsigned>> rootSymbolToSectionIdxs; in runBalancedPartitioning()
84 rootSymbolToSectionIdxs[CachedHashStringRef( in runBalancedPartitioning()
H A DLinkerScript.h319 llvm::DenseMap<llvm::CachedHashStringRef, OutputDesc *> nameToOutputSection;
471 llvm::DenseMap<llvm::CachedHashStringRef, SectionClassDesc *> sectionClasses;
H A DLinkerScript.cpp140 OutputDesc *&secRef = nameToOutputSection[CachedHashStringRef(name)]; in createOutputSection()
157 auto &secRef = nameToOutputSection[CachedHashStringRef(name)]; in getOrCreateOutputSection()
625 sectionClasses.lookup(CachedHashStringRef(cmd->classRef)); in computeInputSections()
768 DenseMap<CachedHashStringRef, OutputDesc *> map; in processSectionCommands()
773 !map.try_emplace(CachedHashStringRef(osec->name), osd).second) in processSectionCommands()
779 if (OutputDesc *overwrite = map.lookup(CachedHashStringRef(osec->name))) { in processSectionCommands()
H A DInputFiles.cpp573 .try_emplace(CachedHashStringRef(signature), this) in parse()
788 ctx.symtab->comdatGroups.find(CachedHashStringRef(signature)) in initializeSections()
1565 DenseMap<CachedHashStringRef, SharedFile *>::iterator it; in parse()
1568 ctx.symtab->soNames.try_emplace(CachedHashStringRef(soName), this); in parse()
1882 ctx.symtab->comdatGroups.try_emplace(CachedHashStringRef(s.first), this) in parse()
/freebsd/contrib/llvm-project/lld/MachO/
H A DSymbolTable.h64 Symbol *find(llvm::CachedHashStringRef name);
65 Symbol *find(StringRef name) { return find(llvm::CachedHashStringRef(name)); } in find()
69 llvm::DenseMap<llvm::CachedHashStringRef, int> symMap;
H A DBPSectionOrderer.cpp113 DenseMap<CachedHashStringRef, std::set<unsigned>> rootSymbolToSectionIdxs; in runBalancedPartitioning()
128 rootSymbolToSectionIdxs[CachedHashStringRef(rootName)].insert(idx); in runBalancedPartitioning()
131 rootSymbolToSectionIdxs[CachedHashStringRef(*linkageName)].insert( in runBalancedPartitioning()
H A DDriverUtils.cpp226 static DenseMap<CachedHashStringRef, DylibFile *> loadedDylibs;
242 CachedHashStringRef path(mbref.getBufferIdentifier()); in loadDylib()
252 CachedHashStringRef realPath( in loadDylib()
H A DInputFiles.h283 llvm::DenseSet<llvm::CachedHashStringRef> hiddenSymbols;
327 extern llvm::DenseMap<llvm::CachedHashStringRef, MemoryBufferRef> cachedReads;
H A DSyntheticSections.h328 static llvm::DenseMap<llvm::CachedHashStringRef, ConcatInputSection *>
450 llvm::DenseMap<llvm::CachedHashStringRef, uint32_t> stringMap;
585 llvm::DenseMap<llvm::CachedHashStringRef, StringOffset> stringOffsetMap;
H A DDriver.cpp83 static DenseMap<CachedHashStringRef, StringRef> resolvedLibraries;
85 CachedHashStringRef key(name); in findLibrary()
114 static DenseMap<CachedHashStringRef, StringRef> resolvedFrameworks;
116 CachedHashStringRef key(name); in findFramework()
1170 literals.insert(CachedHashStringRef(symbolName)); in insert()
1178 return literals.contains(CachedHashStringRef(symbolName)); in matchLiteral()
2067 for (const CachedHashStringRef &cachedName : config->exportedSymbols.literals) in link()
H A DConfig.h96 llvm::SetVector<llvm::CachedHashStringRef> literals;
H A DSymbolTable.cpp24 Symbol *SymbolTable::find(CachedHashStringRef cachedName) { in find()
33 auto p = symMap.insert({CachedHashStringRef(name), (int)symVector.size()}); in insert()
H A DSyntheticSections.cpp819 llvm::DenseMap<llvm::CachedHashStringRef, ConcatInputSection *>
842 methnameToSelref[CachedHashStringRef(methname)] = isec; in initialize()
871 methnameToSelref[CachedHashStringRef(methname)] = objcSelref; in makeSelRef()
876 auto it = methnameToSelref.find(CachedHashStringRef(methname)); in getSelRef()
1547 llvm::CachedHashStringRef hashedStr(str); in addString()
1796 auto offset = stringOffsetMap.find(CachedHashStringRef(str, hash)); in getStringOffset()
H A DInputSection.h232 llvm::CachedHashStringRef getCachedHashStringRef(size_t i) const { in getCachedHashStringRef()
H A DObjC.cpp156 DenseMap<CachedHashStringRef, MethodContainer> instanceMethods;
157 DenseMap<CachedHashStringRef, MethodContainer> classMethods;
199 CachedHashStringRef methodName(r.getReferentString()); in parseMethods()
/freebsd/contrib/llvm-project/llvm/include/llvm/ObjCopy/
H A DCommonConfig.h127 DenseSet<CachedHashStringRef> PosNames;
137 PosNames.insert(CachedHashStringRef(*MaybeName)); in addMatcher()
146 return (PosNames.contains(CachedHashStringRef(S)) || in matches()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/GSYM/
H A DGsymCreator.h143 DenseMap<uint64_t, CachedHashStringRef> StringOffsetMap;
/freebsd/contrib/llvm-project/lld/include/lld/Common/
H A DBPSectionOrdererBase.inc65 const DenseMap<CachedHashStringRef, std::set<unsigned>>
156 const DenseMap<CachedHashStringRef, std::set<unsigned>>
191 rootSymbolToSectionIdxs.find(CachedHashStringRef(parsedFuncName));
/freebsd/contrib/llvm-project/lld/COFF/
H A DSymbolTable.h214 llvm::DenseMap<llvm::CachedHashStringRef, Symbol *> symMap;
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/
H A DGsymCreator.cpp368 CachedHashStringRef CHStr(S); in insertString()
378 CHStr = CachedHashStringRef{StringStorage.insert(S).first->getKey(), in insertString()

12