| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
| H A D | DebugUtils.cpp | 124 bool operator()(const orc::SymbolFlagsMap::value_type &KV) { in operator ()() 125 return flagsMatchCLOpts(KV.second); in operator ()() 130 bool operator()(const orc::SymbolMap::value_type &KV) { in operator ()() 131 return flagsMatchCLOpts(KV.second.getFlags()); in operator ()() 174 raw_ostream &operator<<(raw_ostream &OS, const SymbolFlagsMap::value_type &KV) { in operator <<() argument 175 return OS << "(\"" << KV.first << "\", " << KV.second << ")"; in operator <<() 178 raw_ostream &operator<<(raw_ostream &OS, const SymbolMap::value_type &KV) { in operator <<() argument 179 return OS << "(\"" << KV.first << "\": " << KV.second << ")"; in operator <<() 193 const SymbolDependenceMap::value_type &KV) { in operator <<() argument 194 return OS << "(" << KV.first->getName() << ", " << KV.second << ")"; in operator <<() [all …]
|
| H A D | Core.cpp | 380 for (auto &KV : RequestedAliases) { in materialize() local 382 if (&SrcJD == &TgtJD && (QueryAliases.count(KV.second.Aliasee) || in materialize() 383 RequestedAliases.count(KV.second.Aliasee))) in materialize() 386 ResponsibilitySymbols.insert(KV.first); in materialize() 387 QuerySymbols.add(KV.second.Aliasee, in materialize() 388 KV.second.AliasFlags.hasMaterializationSideEffectsOnly() in materialize() 391 QueryAliases[KV.first] = std::move(KV.second); in materialize() 395 for (auto &KV : QueryAliases) in materialize() local 396 RequestedAliases.erase(KV.first); in materialize() 441 for (auto &KV : QueryInfo->Aliases) { in materialize() local [all …]
|
| H A D | EPCGenericJITLinkMemoryManager.cpp | 46 for (auto &KV : Segs) { in finalize() local 47 assert(KV.second.ContentSize <= std::numeric_limits<size_t>::max()); in finalize() 49 KV.first, in finalize() 50 KV.second.Addr, in finalize() 51 alignTo(KV.second.ContentSize + KV.second.ZeroFillSize, in finalize() 53 {KV.second.WorkingMem, static_cast<size_t>(KV.second.ContentSize)}}); in finalize() 148 for (auto &KV : BL.segments()) { in completeAllocation() local 149 const auto &AG = KV.first; in completeAllocation() 150 auto &Seg = KV.second; in completeAllocation() 153 KV.second.WorkingMem = BL.getGraph().allocateBuffer(Seg.ContentSize).data(); in completeAllocation()
|
| H A D | LookupAndRecordAddrs.cpp | 23 for (auto &KV : Pairs) in lookupAndRecordAddrs() local 24 Symbols.add(KV.first, LookupFlags); in lookupAndRecordAddrs() 32 for (auto &KV : Pairs) { in lookupAndRecordAddrs() local 33 auto I = Result->find(KV.first); in lookupAndRecordAddrs() 34 *KV.second = in lookupAndRecordAddrs() 60 for (auto &KV : Pairs) in lookupAndRecordAddrs() local 61 Symbols.add(KV.first, LookupFlags); in lookupAndRecordAddrs()
|
| H A D | RTDyldObjectLinkingLayer.cpp | 45 for (auto &KV : *InternedResult) in lookup() 46 Result[*KV.first] = {KV.second.getAddress().getValue(), in lookup() 47 KV.second.getFlags()}; in lookup() 63 for (auto &KV : MR.getSymbols()) { in getResponsibilitySet() local 64 if (Symbols.count(*KV.first)) in getResponsibilitySet() 65 Result.insert(*KV.first); in getResponsibilitySet() 314 for (auto &KV : Resolved) { in onObjLoad() local 318 if (InternalSymbols.count(KV.first)) in onObjLoad() 321 auto InternedName = getExecutionSession().intern(KV.first); in onObjLoad() 322 auto Flags = KV.second.getFlags(); in onObjLoad() [all …]
|
| H A D | ExecutionUtils.cpp | 147 for (auto &KV : CtorDtorsByPriority) in run() local 148 for (auto &Name : KV.second) in run() 157 for (auto &KV : CtorDtorsByPriority) { in run() local 158 for (auto &Name : KV.second) { in run() 248 for (auto &KV : Symbols) { in tryToGenerate() local 249 auto &Name = KV.first; in tryToGenerate() 518 for (auto &KV : LO) { in tryToGenerate() local 519 if (KV.first == &JD) in tryToGenerate() 521 LinkOrder.push_back(KV); in tryToGenerate() 530 for (auto &KV : Symbols) { in tryToGenerate() local [all …]
|
| H A D | EPCDynamicLibrarySearchGenerator.cpp | 59 for (auto &KV : Symbols) { in tryToGenerate() local 61 if (Allow && !Allow(KV.first)) in tryToGenerate() 63 LookupSymbols.add(KV.first, SymbolLookupFlags::WeaklyReferencedSymbol); in tryToGenerate() 84 for (auto &KV : LookupSymbols) { in tryToGenerate() local 86 NewSymbols[KV.first] = *ResultI; in tryToGenerate()
|
| H A D | COFFPlatform.cpp | 256 for (auto &KV : AL) { in addAliases() local 257 auto AliasName = ES.intern(KV.first); in addAliases() 259 Aliases[std::move(AliasName)] = {ES.intern(KV.second), in addAliases() 473 for (auto &KV : O) { in buildJDDepMap() local 474 if (KV.first == CurJD) in buildJDDepMap() 479 if (!JITDylibToHeaderAddr.count(KV.first)) { in buildJDDepMap() 488 DM.push_back(KV.first); in buildJDDepMap() 490 if (JDDepMap.try_emplace(KV.first).second) in buildJDDepMap() 491 Worklist.push_back(KV.first); in buildJDDepMap() 528 for (auto &KV : JDDepMap) { in pushInitializersLoop() local [all …]
|
| H A D | LinkGraphLinkingLayer.cpp | 91 for (auto &KV : Symbols) { in lookup() local 93 switch (KV.second) { in lookup() 101 LookupSet.add(KV.first, LookupFlags); in lookup() 195 for (auto &KV : InternedResult) in notifyResolved() local 196 if (!MR->getSymbols().count(KV.first)) in notifyResolved() 197 ExtraSymbols.push_back(KV.first); in notifyResolved() 294 for (auto &KV : NameToSym) { in claimOrExternalizeWeakAndCommonSymbols() local 295 if (MR->getSymbols().count(KV.first)) in claimOrExternalizeWeakAndCommonSymbols() 296 KV.second->setLive(true); in claimOrExternalizeWeakAndCommonSymbols() 298 G.makeExternal(*KV.second); in claimOrExternalizeWeakAndCommonSymbols()
|
| /freebsd/contrib/llvm-project/llvm/lib/Remarks/ |
| H A D | RemarkStringTable.cpp | 33 auto KV = StrTab.insert({Str, NextID}); in add() local 35 if (KV.second) in add() 36 SerializedSize += KV.first->first().size() + 1; // +1 for the '\0' in add() 38 return {KV.first->second, KV.first->first()}; in add() 67 for (const auto &KV : StrTab) in serialize() local 68 Strings[KV.second] = KV.first(); in serialize()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/Platform/QemuUser/ |
| H A D | PlatformQemuUser.cpp | 129 for (const auto &KV : target) { in ComputeLaunchEnvironment() local 132 auto host_it = host.find(KV.first()); in ComputeLaunchEnvironment() 133 if (host_it == host.end() || host_it->second != KV.second) in ComputeLaunchEnvironment() 134 set_env.push_back(Environment::compose(KV)); in ComputeLaunchEnvironment() 139 for (const auto &KV : host) { in ComputeLaunchEnvironment() local 142 if (target.count(KV.first()) == 0) in ComputeLaunchEnvironment() 143 unset_env.push_back(KV.first()); in ComputeLaunchEnvironment() 205 for (const auto &KV : GetGlobalProperties().GetEmulatorEnvVars()) in DebugProcess() local 206 emulator_env[KV.first()] = KV.second; in DebugProcess() 248 for (const auto &KV : GetGlobalProperties().GetTargetEnvVars()) in GetEnvironment() local [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | AnnotationRemarks.cpp | 68 for (const auto &KV : Mapping) in runImpl() local 71 << "Annotated " << NV("count", KV.second) << " instructions with " in runImpl() 72 << NV("type", KV.first)); in runImpl() 76 for (auto &KV : DebugLoc2Annotated) { in runImpl() local 78 if (!KV.first) in runImpl() 81 tryEmitAutoInitRemark(KV.second, ORE, TLI); in runImpl()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/orc/ |
| H A D | coff_platform.cpp | 468 for (auto &KV : Secs) { in registerObjectSections() local 469 if (auto Err = registerBlockRange(HeaderAddr, KV.second)) in registerObjectSections() 471 if (KV.first.empty()) in registerObjectSections() 473 char LastChar = KV.first.data()[KV.first.size() - 1]; in registerObjectSections() 474 if (KV.first == ".pdata") { in registerObjectSections() 475 if (auto Err = registerSEHFrames(HeaderAddr, KV.second)) in registerObjectSections() 477 } else if (KV.first >= ".CRT$XIA" && KV.first <= ".CRT$XIZ") { in registerObjectSections() 480 KV.second.toSpan<void (*)(void)>()); in registerObjectSections() 483 KV.second.toSpan<void (*)(void)>()); in registerObjectSections() 484 } else if (KV.first >= ".CRT$XCA" && KV.first <= ".CRT$XCZ") { in registerObjectSections() [all …]
|
| H A D | macho_platform.cpp | 587 for (auto &KV : Secs) { in registerObjectPlatformSections() local 589 if (KV.first == "__TEXT,__eh_frame") { in registerObjectPlatformSections() 592 if (auto Err = registerEHFrames(KV.second.toSpan<const char>())) in registerObjectPlatformSections() 595 } else if (KV.first == "__DATA,__data") { in registerObjectPlatformSections() 596 assert(!JDS->DataSectionContent.count(KV.second.Start.toPtr<char *>()) && in registerObjectPlatformSections() 598 auto S = KV.second.toSpan<char>(); in registerObjectPlatformSections() 599 JDS->DataSectionContent[KV.second.Start.toPtr<char *>()] = in registerObjectPlatformSections() 601 } else if (KV.first == "__DATA,__common") { in registerObjectPlatformSections() 602 JDS->ZeroInitRanges[KV.second.Start.toPtr<char *>()] = KV.second.size(); in registerObjectPlatformSections() 603 } else if (KV.first == "__DATA,__thread_data") { in registerObjectPlatformSections() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | StackSafetyAnalysis.cpp | 198 for (auto &KV : Params) { in print() local 201 O << F->getArg(KV.first)->getName(); in print() 203 O << formatv("arg{0}", KV.first); in print() 204 O << "[]: " << KV.second << "\n"; in print() 645 for (auto &KV : US.Calls) { in updateOneUse() local 646 assert(!KV.second.isEmptySet() && in updateOneUse() 650 getArgumentAccessRange(KV.first.Callee, KV.first.ParamNo, KV.second); in updateOneUse() 667 for (auto &KV : FS.Params) in updateOneNode() local 668 Changed |= updateOneUse(KV.second, UpdateToFullSet); in updateOneNode() 687 for (auto &KV : FS.Params) in runDataFlow() local [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Basic/ |
| H A D | DarwinSDKInfo.cpp | 26 auto KV = Mapping.find(Key.normalize()); in map() local 27 if (KV != Mapping.end()) in map() 28 return KV->getSecond(); in map() 45 for (const auto &KV : Obj) { in parseJSON() local 46 if (auto Val = KV.getSecond().getAsString()) { in parseJSON() 49 if (KeyVersion.tryParse(KV.getFirst()) || ValueVersion.tryParse(*Val)) in parseJSON() 115 for (const auto &KV : *VM) { in parseDarwinSDKSettingsJSON() 116 auto Pair = StringRef(KV.getFirst()).split("_"); in parseDarwinSDKSettingsJSON() 121 *KV.getSecond().getAsObject(), *MaximumDeploymentVersion); in parseDarwinSDKSettingsJSON()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | JITLinkMemoryManager.cpp | 51 for (auto &KV : Segments) { in BasicLayout() local 52 auto &Seg = KV.second; in BasicLayout() 72 dbgs() << " Seg " << KV.first in BasicLayout() 84 for (auto &KV : segments()) { in getContiguousPageBasedLayoutSizes() local 85 auto &AG = KV.first; in getContiguousPageBasedLayoutSizes() 86 auto &Seg = KV.second; in getContiguousPageBasedLayoutSizes() 103 for (auto &KV : Segments) { in apply() local 104 auto &Seg = KV.second; in apply() 166 for (auto &KV : Segments) { in Create() local 167 auto &AG = KV.first; in Create() [all …]
|
| H A D | MachOLinkGraphBuilder.cpp | 195 for (auto &KV : IndexToSection) in createNormalizedSections() local 196 Sections.push_back(&KV.second); in createNormalizedSections() 346 for (auto &KV : IndexToSymbol) { in graphifyRegularSymbols() local 347 auto &NSym = *KV.second; in graphifyRegularSymbols() 354 Twine(KV.first)); in graphifyRegularSymbols() 366 Twine(KV.first)); in graphifyRegularSymbols() 374 Twine(KV.first)); in graphifyRegularSymbols() 386 " at index " + Twine(KV.first)); in graphifyRegularSymbols() 391 " at index " + Twine(KV.first)); in graphifyRegularSymbols() 397 " at index " + Twine(KV.first)); in graphifyRegularSymbols() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPURemoveIncompatibleFunctions.cpp | 89 for (const SubtargetFeatureKV &KV : AMDGPUFeatureKV) in getFeatureName() local 90 if (Feature == KV.Value) in getFeatureName() 91 return KV.Key; in getFeatureName() 98 for (const SubtargetSubTypeKV &KV : ST.getAllProcessorDescriptions()) in getGPUInfo() local 99 if (StringRef(KV.Key) == GPUName) in getGPUInfo() 100 return &KV; in getGPUInfo()
|
| /freebsd/contrib/llvm-project/llvm/utils/TableGen/Basic/ |
| H A D | VTEmitter.cpp | 175 for (const auto &KV : VTRanges) { in run() local 176 assert(KV.second.Closed); in run() 177 OS << " FIRST_" << KV.first << " = " << KV.second.First << ",\n" in run() 178 << " LAST_" << KV.first << " = " << KV.second.Last << ",\n"; in run()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyMachineFunctionInfo.cpp | 142 for (auto KV : EHInfo->SrcToUnwindDest) { in WebAssemblyFunctionInfo() local 143 auto *SrcBB = cast<MachineBasicBlock *>(KV.first); in WebAssemblyFunctionInfo() 144 auto *DestBB = cast<MachineBasicBlock *>(KV.second); in WebAssemblyFunctionInfo() 167 for (auto KV : YamlMFI.SrcToUnwindDest) in initializeBaseYamlFields() local 168 WasmEHInfo->setUnwindDest(MF.getBlockNumbered(KV.first), in initializeBaseYamlFields() 169 MF.getBlockNumbered(KV.second)); in initializeBaseYamlFields()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_dense_map.h | 106 detail::DenseMapPair<value_type *, bool> insert(const value_type &KV) { in insert() argument 107 return try_emplace(KV.first, KV.second); in insert() 113 detail::DenseMapPair<value_type *, bool> insert(value_type &&KV) { in insert() argument 114 return try_emplace(__sanitizer::move(KV.first), in insert() 115 __sanitizer::move(KV.second)); in insert() 156 detail::DenseMapPair<value_type *, bool> insert_as(value_type &&KV, in insert_as() argument 164 InsertIntoBucketWithLookup(TheBucket, __sanitizer::move(KV.first), in insert_as() 165 __sanitizer::move(KV.second), Val); in insert_as() 231 [&](const value_type &KV) { return fn(KV); }); in forEach() 554 BucketT>::value_type &KV) -> bool { [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ |
| H A D | DebugUtils.h | 49 const SymbolFlagsMap::value_type &KV); 53 const SymbolMap::value_type &KV); 64 const SymbolDependenceMap::value_type &KV); 84 const SymbolLookupSet::value_type &KV);
|
| /freebsd/contrib/llvm-project/lldb/source/Utility/ |
| H A D | Environment.cpp | 32 for (const auto &KV : Env) in Envp() local 33 *Next++ = make_entry(KV.first(), KV.second); in Envp()
|
| /freebsd/contrib/llvm-project/llvm/lib/Object/ |
| H A D | ModuleSymbolTable.cpp | 146 for (auto &KV : Streamer) { in CollectAsmSymbols() local 147 StringRef Key = KV.first(); in CollectAsmSymbols() 148 RecordStreamer::State Value = KV.second; in CollectAsmSymbols() 194 for (auto &KV : Streamer.symverAliases()) in CollectAsmSymvers() local 195 for (auto &Alias : KV.second) in CollectAsmSymvers() 196 AsmSymver(KV.first->getName(), Alias); in CollectAsmSymvers()
|