Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/include/llvm/ADT/
H A DCachedHashString.h30 class CachedHashStringRef {
37 explicit CachedHashStringRef(StringRef S) in CachedHashStringRef() function
40 CachedHashStringRef(StringRef S, uint32_t Hash) in CachedHashStringRef() function
51 template <> struct DenseMapInfo<CachedHashStringRef> {
52 static CachedHashStringRef getEmptyKey() {
55 static CachedHashStringRef getTombstoneKey() {
58 static unsigned getHashValue(const CachedHashStringRef &S) {
63 static bool isEqual(const CachedHashStringRef &LHS,
64 const CachedHashStringRef &RHS) {
142 operator CachedHashStringRef() const {
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/MC/
H A DStringTableBuilder.h29 DenseMap<CachedHashStringRef, size_t> StringIndexMap;
45 size_t add(CachedHashStringRef S);
46 size_t add(StringRef S) { return add(CachedHashStringRef(S)); } in add()
58 size_t getOffset(CachedHashStringRef S) const;
60 return getOffset(CachedHashStringRef(S)); in getOffset()
/freebsd-12.1/contrib/llvm/lib/MC/
H A DStringTableBuilder.cpp62 using StringPair = std::pair<CachedHashStringRef, size_t>;
170 size_t StringTableBuilder::getOffset(CachedHashStringRef S) const { in getOffset()
177 size_t StringTableBuilder::add(CachedHashStringRef S) { in add()
/freebsd-12.1/contrib/llvm/tools/lld/ELF/
H A DSymbolTable.cpp145 DenseSet<CachedHashStringRef> DummyGroups; in addCombinedLTOObject()
157 SymMap.insert({CachedHashStringRef(Name), -1}); in trace()
162 int &Idx1 = SymMap[CachedHashStringRef(Sym->getName())]; in wrap()
163 int &Idx2 = SymMap[CachedHashStringRef(Real->getName())]; in wrap()
164 int &Idx3 = SymMap[CachedHashStringRef(Wrap->getName())]; in wrap()
197 auto P = SymMap.insert({CachedHashStringRef(Name), (int)SymVector.size()}); in insertName()
534 auto It = SymMap.find(CachedHashStringRef(Name)); in find()
H A DSymbolTable.h104 llvm::DenseMap<llvm::CachedHashStringRef, int> SymMap;
110 llvm::DenseSet<llvm::CachedHashStringRef> ComdatGroups;
H A DInputFiles.cpp284 void ObjFile<ELFT>::parse(DenseSet<CachedHashStringRef> &ComdatGroups) { in parse()
390 DenseSet<CachedHashStringRef> &ComdatGroups) { in initializeSections()
450 bool IsNew = ComdatGroups.insert(CachedHashStringRef(Signature)).second; in initializeSections()
1173 void BitcodeFile::parse(DenseSet<CachedHashStringRef> &ComdatGroups) { in parse()
1176 KeptComdats.push_back(ComdatGroups.insert(CachedHashStringRef(S)).second); in parse()
1326 template void BitcodeFile::parse<ELF32LE>(DenseSet<CachedHashStringRef> &);
1327 template void BitcodeFile::parse<ELF32BE>(DenseSet<CachedHashStringRef> &);
1328 template void BitcodeFile::parse<ELF64LE>(DenseSet<CachedHashStringRef> &);
1329 template void BitcodeFile::parse<ELF64BE>(DenseSet<CachedHashStringRef> &);
H A DInputFiles.h186 void parse(llvm::DenseSet<llvm::CachedHashStringRef> &ComdatGroups);
228 initializeSections(llvm::DenseSet<llvm::CachedHashStringRef> &ComdatGroups);
307 void parse(llvm::DenseSet<llvm::CachedHashStringRef> &ComdatGroups);
H A DInputSection.h260 llvm::CachedHashStringRef getData(size_t I) const { in getData()
H A DSyntheticSections.h688 llvm::CachedHashStringRef Name;
699 llvm::CachedHashStringRef Name;
H A DSyntheticSections.cpp2505 std::vector<DenseMap<CachedHashStringRef, size_t>> Map(NumShards); in createSymbols()
/freebsd-12.1/contrib/llvm/tools/lld/COFF/
H A DSymbolTable.h120 llvm::DenseMap<llvm::CachedHashStringRef, Symbol *> SymMap;
H A DSymbolTable.cpp291 Symbol *&Sym = SymMap[CachedHashStringRef(Name)]; in insert()
471 return SymMap.lookup(CachedHashStringRef(Name)); in find()