Searched refs:CachedHashStringRef (Results 1 – 12 of 12) sorted by relevance
30 class CachedHashStringRef {37 explicit CachedHashStringRef(StringRef S) in CachedHashStringRef() function40 CachedHashStringRef(StringRef S, uint32_t Hash) in CachedHashStringRef() function51 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 …]
29 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()
62 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()
145 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()
104 llvm::DenseMap<llvm::CachedHashStringRef, int> SymMap;110 llvm::DenseSet<llvm::CachedHashStringRef> ComdatGroups;
284 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> &);
186 void parse(llvm::DenseSet<llvm::CachedHashStringRef> &ComdatGroups);228 initializeSections(llvm::DenseSet<llvm::CachedHashStringRef> &ComdatGroups);307 void parse(llvm::DenseSet<llvm::CachedHashStringRef> &ComdatGroups);
260 llvm::CachedHashStringRef getData(size_t I) const { in getData()
688 llvm::CachedHashStringRef Name;699 llvm::CachedHashStringRef Name;
2505 std::vector<DenseMap<CachedHashStringRef, size_t>> Map(NumShards); in createSymbols()
120 llvm::DenseMap<llvm::CachedHashStringRef, Symbol *> SymMap;
291 Symbol *&Sym = SymMap[CachedHashStringRef(Name)]; in insert()471 return SymMap.lookup(CachedHashStringRef(Name)); in find()