Home
last modified time | relevance | path

Searched refs:MapEntry (Results 1 – 25 of 26) sorted by relevance

12

/llvm-project/llvm/include/llvm/CodeGen/
H A DDwarfStringPoolEntry.h57 PointerUnion<ByValStringEntryPtr, ExtStringEntryPtr> MapEntry = nullptr; variable
65 : MapEntry(&Entry) {} in DwarfStringPoolEntryRef()
70 : MapEntry(&Entry) {} in DwarfStringPoolEntryRef()
72 explicit operator bool() const { return !MapEntry.isNull(); }
91 if (isa<ByValStringEntryPtr>(MapEntry)) in getString()
92 return cast<ByValStringEntryPtr>(MapEntry)->first(); in getString()
94 return cast<ExtStringEntryPtr>(MapEntry)->String; in getString()
99 if (isa<ByValStringEntryPtr>(MapEntry)) in getEntry()
100 return cast<ByValStringEntryPtr>(MapEntry)->second; in getEntry()
102 return *cast<ExtStringEntryPtr>(MapEntry); in getEntry()
[all …]
/llvm-project/bolt/lib/Rewrite/
H A DBoltDiff.cpp352 for (const auto &MapEntry : FuncMap) { in matchBasicBlocks()
353 const BinaryFunction *const &Func1 = MapEntry.second; in matchBasicBlocks()
354 const BinaryFunction *const &Func2 = MapEntry.first; in matchBasicBlocks()
417 for (const auto &MapEntry : BBMap) { in reportHottestBBDiffs()
418 const BinaryBasicBlock *BB2 = MapEntry.first; in reportHottestBBDiffs()
419 const BinaryBasicBlock *BB1 = MapEntry.second; in reportHottestBBDiffs()
539 for (const auto &MapEntry : FuncMap) { in reportHottestFuncDiffs()
540 const BinaryFunction *const &Func1 = MapEntry.second; in reportHottestFuncDiffs()
541 const BinaryFunction *const &Func2 = MapEntry.first; in reportHottestFuncDiffs()
555 std::make_pair<>(std::abs(Score1 - Score2), MapEntry)); in reportHottestFuncDiffs()
350 for (const auto &MapEntry : FuncMap) { matchBasicBlocks() local
415 for (const auto &MapEntry : BBMap) { reportHottestBBDiffs() local
537 for (const auto &MapEntry : FuncMap) { reportHottestFuncDiffs() local
563 for (decltype(this->FuncMap)::value_type &MapEntry : reportHottestFuncDiffs() local
626 for (const std::pair<const double, const BinaryFunction *> &MapEntry : reportHottestFuncs() local
[all...]
/llvm-project/lldb/source/Plugins/Language/CPlusPlus/
H A DLibCxxMap.cpp47 class MapEntry { class
49 MapEntry() = default;
50 explicit MapEntry(ValueObjectSP entry_sp) : m_entry_sp(entry_sp) {} in MapEntry() function in MapEntry
51 explicit MapEntry(ValueObject *entry) in MapEntry() function in MapEntry
95 bool operator==(const MapEntry &rhs) const { in operator ==()
132 MapEntry right(m_entry.right()); in next()
146 m_entry = MapEntry(); in next()
150 m_entry = MapEntry(m_entry.parent()); in next()
154 MapEntry tree_min(MapEntry
[all...]
/llvm-project/clang/include/clang/Basic/
H A DDirectoryEntry.h60 using MapEntry = llvm::StringMapEntry<llvm::ErrorOr<DirectoryEntry &>>; variable
62 const MapEntry &getMapEntry() const { return *ME; } in getMapEntry()
68 explicit DirectoryEntryRef(const MapEntry &ME) : ME(&ME) {} in DirectoryEntryRef()
103 : ME(llvm::DenseMapInfo<const MapEntry *>::getEmptyKey()) {}
105 : ME(llvm::DenseMapInfo<const MapEntry *>::getTombstoneKey()) {}
111 const MapEntry *ME;
196 return const_cast<clang::DirectoryEntryRef::MapEntry *>(&Dir.getMapEntry());
201 *reinterpret_cast<const clang::DirectoryEntryRef::MapEntry *>(Ptr));
205 const clang::DirectoryEntryRef::MapEntry *>::NumLowBitsAvailable;
H A DFileEntry.h117 using MapEntry = llvm::StringMapEntry<llvm::ErrorOr<MapValue>>;
121 /// The pointer at another MapEntry is used when the FileManager should
126 llvm::PointerUnion<FileEntry *, const MapEntry *> V;
133 MapValue(MapEntry &ME, DirectoryEntryRef Dir) : V(&ME), Dir(Dir) {}
159 explicit FileEntryRef(const MapEntry &ME) : ME(&ME) {
164 /// Expose the underlying MapEntry to simplify packing in a PointerIntPair or in getBaseMapEntry()
166 const clang::FileEntryRef::MapEntry &getMapEntry() const { return *ME; } in getBaseMapEntry()
168 /// Retrieve the base MapEntry after redirects. in getBaseMapEntry()
169 const MapEntry &getBaseMapEntry() const { in getBaseMapEntry()
170 const MapEntry *Bas in getBaseMapEntry()
112 using MapEntry = llvm::StringMapEntry<llvm::ErrorOr<MapValue>>; global() variable
[all...]
/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfStringPool.cpp41 auto &MapEntry = getEntryImpl(Asm, Str); in getEntry() local
42 return EntryRef(MapEntry); in getEntry()
47 auto &MapEntry = getEntryImpl(Asm, Str); in getIndexedEntry() local
48 if (!MapEntry.getValue().isIndexed()) in getIndexedEntry()
49 MapEntry.getValue().Index = NumIndexedStrings++; in getIndexedEntry()
50 return EntryRef(MapEntry); in getIndexedEntry()
/llvm-project/llvm/lib/BinaryFormat/
H A DMsgPackDocument.cpp111 DocNode *MapEntry = nullptr) in StackLevel()
113 MapEntry(MapEntry) {} in StackLevel()
118 DocNode *MapEntry; member
203 if (!Stack.back().MapEntry) { in readFromBlob()
206 Stack.back().MapEntry = &Map[Node]; in readFromBlob()
210 DestNode = Stack.back().MapEntry; in readFromBlob()
211 Stack.back().MapEntry = nullptr; in readFromBlob()
242 if (Stack.back().MapEntry) in readFromBlob()
/llvm-project/bolt/runtime/
H A Dinstr.cpp306 using MapEntry = T; typedef in __anonc11c1cb60211::SimpleHashTable
327 MapEntry &get(uint64_t Key, BumpPtrAllocator &Alloc) { in get()
340 void forEachElement(void (*Callback)(MapEntry &, Args...), Args... args) { in forEachElement() argument
353 MapEntry *TableRoot{nullptr};
354 MapEntry NoEntry;
358 void forEachElement(void (*Callback)(MapEntry &, Args...), in forEachElement() argument
359 uint32_t NumEntries, MapEntry *Entries, Args... args) { in forEachElement()
361 MapEntry &Entry = Entries[I]; in forEachElement()
365 MapEntry *Next = in forEachElement()
366 reinterpret_cast<MapEntry *>(Entry.Key & ~FollowUpTableMarker); in forEachElement()
[all …]
/llvm-project/llvm/lib/Analysis/
H A DAliasSetTracker.cpp275 AliasSet *&MapEntry = PointerMap[MemLoc.Ptr]; in getAliasSetFor()
276 if (MapEntry) { in getAliasSetFor() local
277 collapseForwardingIn(MapEntry); in getAliasSetFor()
278 if (is_contained(MapEntry->MemoryLocs, MemLoc)) in getAliasSetFor()
279 return *MapEntry; in getAliasSetFor()
292 MemLoc, MapEntry, MustAliasAll)) { in getAliasSetFor()
305 if (MapEntry) { in getAliasSetFor()
306 collapseForwardingIn(MapEntry); in getAliasSetFor()
307 assert(MapEntry == AS && "Memory locations with same pointer value cannot " in getAliasSetFor()
311 MapEntry in getAliasSetFor()
[all...]
/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DConstantHoisting.h138 for (auto MapEntry : ConstGEPCandMap) in cleanup() local
139 MapEntry.second.clear(); in cleanup()
142 for (auto MapEntry : ConstGEPInfoMap) in cleanup() local
143 MapEntry.second.clear(); in cleanup()
/llvm-project/bolt/lib/Core/
H A DGDBIndex.cpp126 using MapEntry = std::pair<uint32_t, CUInfo>; in updateGdbIndexSection()
127 std::vector<MapEntry> CUVector(CUMap.begin(), CUMap.end()); in updateGdbIndexSection() typedef
130 [](const MapEntry &E1, const MapEntry &E2) -> bool { in updateGdbIndexSection()
/llvm-project/clang/tools/libclang/
H A DCXFile.h18 return CXFile(FE ? const_cast<FileEntryRef::MapEntry *>(&FE->getMapEntry()) in makeCXFile()
25 return FileEntryRef(*reinterpret_cast<const FileEntryRef::MapEntry *>(File)); in getFileEntryRef()
/llvm-project/clang-tools-extra/clangd/unittests/
H A DExpectedTypeTest.cpp53 using MapEntry = std::map<std::string, EquivClass>::value_type; in classesAre() typedef
55 std::vector<Matcher<MapEntry>> Elements; in classesAre()
58 Elements.push_back(Field(&MapEntry::second, Cls)); in classesAre()
/llvm-project/llvm/lib/DebugInfo/MSF/
H A DMappedBlockStream.cpp278 for (const auto &MapEntry : CacheMap) { in fixCacheAfterWrite() local
281 if (Offset + Data.size() < MapEntry.first) in fixCacheAfterWrite()
283 for (const auto &Alloc : MapEntry.second) { in fixCacheAfterWrite()
286 if (MapEntry.first + Alloc.size() < Offset) in fixCacheAfterWrite()
292 std::make_pair(MapEntry.first, MapEntry.first + Alloc.size()); in fixCacheAfterWrite()
/llvm-project/bolt/lib/Profile/
H A DBoltAddressTranslation.cpp194 for (auto &MapEntry : Maps) { in writeMaps()
195 const uint64_t Address = MapEntry.first; in writeMaps() local
203 MapTy &Map = MapEntry.second; in writeMaps()
440 for (const auto &MapEntry : Maps) { in dump()
441 const uint64_t Address = MapEntry.first; in dump()
451 for (const auto &Entry : MapEntry.second) { in dump()
442 for (const auto &MapEntry : Maps) { dump() local
/llvm-project/bolt/lib/Passes/
H A DRegAnalysis.cpp78 for (auto &MapEntry : *BFs) { in RegAnalysis()
79 BinaryFunction *Func = &MapEntry.second; in RegAnalysis()
H A DFrameAnalysis.cpp304 for (auto &MapEntry : ArgsTouchedMap) { in traverseCG()
305 const BinaryFunction *Func = MapEntry.first; in traverseCG()
306 const auto &Set = MapEntry.second; in traverseCG()
/llvm-project/llvm/lib/Transforms/Scalar/
H A DConstantHoisting.cpp942 for (const auto &MapEntry : ConstGEPCandMap) in deleteDeadCastInst()
943 if (!MapEntry.second.empty()) in deleteDeadCastInst()
944 findBaseConstants(MapEntry.first);
951 for (const auto &MapEntry : ConstGEPInfoMap) in runImpl()
952 if (!MapEntry.second.empty()) in runImpl()
953 MadeChange |= emitBaseConstants(MapEntry.first); in runImpl()
967 for (const auto &MapEntry : ConstGEPCandMap) runImpl() local
976 for (const auto &MapEntry : ConstGEPInfoMap) runImpl() local
/llvm-project/llvm/lib/MC/
H A DMCAsmStreamer.cpp2401 uint8_t MapEntry = FixupMap[i * 8 + 0]; in emitInstruction()
2403 if (FixupMap[i * 8 + j] == MapEntry) in emitInstruction()
2406 MapEntry = uint8_t(~0U); in emitInstruction()
2410 if (MapEntry != uint8_t(~0U)) { in emitInstruction()
2411 if (MapEntry == 0) { in emitInstruction()
2417 << char('A' + MapEntry - 1) << '\'';
2419 OS << char('A' + MapEntry - 1); in emitPseudoProbe()
2433 if (uint8_t MapEntry = FixupMap[FixupBit]) { in emitPseudoProbe()
2435 OS << char('A' + MapEntry - 1);
2334 uint8_t MapEntry = FixupMap[i * 8 + 0]; AddEncodingComment() local
2366 if (uint8_t MapEntry = FixupMap[FixupBit]) { AddEncodingComment() local
/llvm-project/llvm/include/llvm/ADT/
H A DStringMap.h279 size_type count(const StringMapEntry<InputTy> &MapEntry) const { in count() argument
280 return count(MapEntry.getKey()); in count()
/llvm-project/clang/lib/Serialization/
H A DGlobalModuleIndex.cpp750 for (auto MapEntry : ImportedModuleFiles) {
751 auto File = MapEntry.first;
752 ImportedModuleFileInfo &Info = MapEntry.second;
755 for (auto MapEntry : ImportedModuleFiles) { writeIndex() local
/llvm-project/clang/include/clang/Serialization/
H A DModuleFile.h90 llvm::PointerIntPair<const FileEntryRef::MapEntry *, 2, unsigned> Val;
/llvm-project/clang/unittests/Basic/
H A DFileEntryTest.cpp60 const_cast<FileEntryRef::MapEntry &>( in addFileRedirect()
/llvm-project/llvm/lib/IR/
H A DMetadata.cpp609 auto &MapEntry = I.first->getValue();
611 return &MapEntry; in getString()
612 MapEntry.Entry = &*I.first; in getString()
613 return &MapEntry; in getString()
603 auto &MapEntry = I.first->getValue(); get() local
/llvm-project/clang/lib/Basic/
H A DFileManager.cpp403 return FileEntryRef(*cast<const FileEntryRef::MapEntry *>(Value.V)); in getVirtualFileRef()

12