Lines Matching full:auto
34 for (auto &Sec : G.sections()) { in hasInitializerSection()
81 auto LGI = scanLinkGraph(ObjLinkingLayer.getExecutionSession(), *G); in Create()
97 auto AddSymbol = [&](Symbol *Sym) { in scanLinkGraph()
107 for (auto *Sym : G.defined_symbols()) in scanLinkGraph()
109 for (auto *Sym : G.absolute_symbols()) in scanLinkGraph()
131 for (auto *Sym : G->defined_symbols()) in discard()
174 for (auto &P : Plugins) in notifyMaterializing()
181 for (auto &P : Plugins) in notifyFailed()
194 auto &ES = Layer.getExecutionSession(); in lookup()
197 for (auto &KV : Symbols) { in lookup()
211 auto OnResolve = [LookupContinuation = in lookup()
217 for (auto &KV : *Result) in lookup()
227 for (auto &[DepJD, Deps] : Deps) in lookup()
228 for (auto &DepSym : Deps) in lookup()
234 auto &ES = Layer.getExecutionSession(); in notifyResolved()
240 for (auto *Sym : G.defined_symbols()) in notifyResolved()
242 auto InternedName = ES.intern(Sym->getName()); in notifyResolved()
243 auto Ptr = getJITSymbolPtrForSymbol(*Sym, G.getTargetTriple()); in notifyResolved()
244 auto Flags = getJITSymbolFlagsForSymbol(*Sym); in notifyResolved()
253 for (auto *Sym : G.absolute_symbols()) in notifyResolved()
255 auto InternedName = ES.intern(Sym->getName()); in notifyResolved()
256 auto Ptr = getJITSymbolPtrForSymbol(*Sym, G.getTargetTriple()); in notifyResolved()
257 auto Flags = getJITSymbolFlagsForSymbol(*Sym); in notifyResolved()
267 if (auto Err = MR->defineMaterializing(ExtraSymbolsToClaim)) in notifyResolved()
280 for (auto &KV : MR->getSymbols()) { in notifyResolved()
282 auto I = InternedResult.find(KV.first); in notifyResolved()
308 for (auto &KV : InternedResult) in notifyResolved()
320 if (auto Err = MR->notifyResolved(InternedResult)) in notifyResolved()
328 if (auto Err = notifyEmitted(std::move(A))) { in notifyFinalized()
333 if (auto Err = MR->notifyEmitted(SymbolDepGroups)) { in notifyFinalized()
350 for (auto &P : Plugins) in modifyPassConfig()
360 for (auto &P : Plugins) in notifyLoaded()
366 for (auto &P : Plugins) in notifyEmitted()
399 auto I = BlockTransitiveDepsCache.find(&B); in operator []()
405 auto BDI = BlockDeps.find(&B); in operator []()
408 for (auto *BDep : BDI->second) { in operator []()
409 auto &BID = getBlockImmediateDeps(*BDep); in operator []()
410 for (auto &ExternalDep : BID.External) in operator []()
412 for (auto &InternalDep : BID.Internal) in operator []()
422 auto I = NameCache.find(&Sym); in getInternedName()
433 auto I = BlockImmediateDepsCache.find(&B); in getBlockImmediateDeps()
438 for (auto &E : B.edges()) { in getBlockImmediateDeps()
439 auto &Tgt = E.getTarget(); in getBlockImmediateDeps()
462 auto &ES = Layer.getExecutionSession(); in claimOrExternalizeWeakAndCommonSymbols()
467 auto ProcessSymbol = [&](Symbol *Sym) { in claimOrExternalizeWeakAndCommonSymbols()
470 auto Name = ES.intern(Sym->getName()); in claimOrExternalizeWeakAndCommonSymbols()
479 for (auto *Sym : G.defined_symbols()) in claimOrExternalizeWeakAndCommonSymbols()
481 for (auto *Sym : G.absolute_symbols()) in claimOrExternalizeWeakAndCommonSymbols()
487 if (auto Err = MR->defineMaterializing(std::move(NewSymbolsToClaim))) in claimOrExternalizeWeakAndCommonSymbols()
493 for (auto &KV : NameToSym) { in claimOrExternalizeWeakAndCommonSymbols()
504 auto &ES = Layer.getExecutionSession(); in markResponsibilitySymbolsLive()
505 for (auto *Sym : G.defined_symbols()) in markResponsibilitySymbolsLive()
512 auto &TargetJD = MR->getTargetJITDylib(); in registerDependencies()
513 auto &ES = TargetJD.getExecutionSession(); in registerDependencies()
514 auto BlockDeps = computeBlockNonLocalDeps(G); in registerDependencies()
520 for (auto *Sym : G.defined_symbols()) { in registerDependencies()
528 auto &BDeps = BlockDeps[Sym->getBlock()]; in registerDependencies()
542 for (auto &Dep : BDeps.External) { in registerDependencies()
543 auto DepSrcItr = SymbolSourceJDs.find(NonOwningSymbolStringPtr(Dep)); in registerDependencies()
552 for (auto &P : Plugins) { in registerDependencies()
553 auto SynthDeps = P->getSyntheticSymbolDependencies(*MR); in registerDependencies()
558 for (auto &[Name, DepSyms] : SynthDeps) { in registerDependencies()
560 for (auto *Sym : DepSyms) { in registerDependencies()
562 auto &BDeps = BlockDeps[Sym->getBlock()]; in registerDependencies()
563 for (auto &S : BDeps.Internal) in registerDependencies()
565 for (auto &S : BDeps.External) { in registerDependencies()
566 auto DepSrcItr = in registerDependencies()
572 auto SymName = ES.intern(Sym->getName()); in registerDependencies()
589 for (auto &[B, SDG] : DepGroupForBlock) { in registerDependencies()
612 for (auto *B : G.blocks()) in computeBlockNonLocalDeps()
617 for (auto *B : G.blocks()) { in computeBlockNonLocalDeps()
618 auto &BI = BlockInfos[B]; in computeBlockNonLocalDeps()
619 for (auto &E : B->edges()) { in computeBlockNonLocalDeps()
622 auto &TgtB = E.getTarget().getBlock(); in computeBlockNonLocalDeps()
633 for (auto &[B, BI] : BlockInfos) { in computeBlockNonLocalDeps()
640 auto *B = WorkList.pop_back_val(); in computeBlockNonLocalDeps()
642 auto &BI = BlockInfos[B]; in computeBlockNonLocalDeps()
646 for (auto *Dependant : BI.Dependants) { in computeBlockNonLocalDeps()
647 auto &DependantBI = BlockInfos[Dependant]; in computeBlockNonLocalDeps()
648 for (auto *Dependency : BI.Dependencies) { in computeBlockNonLocalDeps()
660 for (auto &KV : BlockInfos) in computeBlockNonLocalDeps()
707 auto &JD = RT->getJITDylib(); in add()
717 auto Ctx = std::make_unique<ObjectLinkingLayerJITLinkContext>( in emit()
719 if (auto G = createLinkGraphFromObject(ObjBuffer)) { in emit()
729 auto Ctx = std::make_unique<ObjectLinkingLayerJITLinkContext>( in emit()
737 auto Err = MR.withResourceKeyDo( in recordFinalizedAlloc()
750 for (auto &P : Plugins) in handleRemoveResources()
758 auto I = Allocs.find(K); in handleRemoveResources()
774 auto I = Allocs.find(SrcKey); in handleTransferResources()
776 auto &SrcAllocs = I->second; in handleTransferResources()
777 auto &DstAllocs = Allocs[DstKey]; in handleTransferResources()
779 for (auto &Alloc : SrcAllocs) in handleTransferResources()
787 for (auto &P : Plugins) in handleTransferResources()
817 auto EHFrameRangeItr = InProcessLinks.find(&MR); in notifyEmitted()
826 if (auto Err = MR.withResourceKeyDo( in notifyEmitted()
845 auto I = EHFrameRanges.find(K); in notifyRemovingResources()
854 auto RangeToRemove = RangesToRemove.back(); in notifyRemovingResources()
866 auto SI = EHFrameRanges.find(SrcKey); in notifyTransferringResources()
870 auto DI = EHFrameRanges.find(DstKey); in notifyTransferringResources()
872 auto &SrcRanges = SI->second; in notifyTransferringResources()
873 auto &DstRanges = DI->second; in notifyTransferringResources()
875 for (auto &SrcRange : SrcRanges) in notifyTransferringResources()
881 auto Tmp = std::move(SI->second); in notifyTransferringResources()