Lines Matching refs:IPLS

522   virtual void complete(std::unique_ptr<InProgressLookupState> IPLS) = 0;
547 void complete(std::unique_ptr<InProgressLookupState> IPLS) override { in complete() argument
550 ES.OL_completeLookupFlags(std::move(IPLS), std::move(OnComplete)); in complete()
574 void complete(std::unique_ptr<InProgressLookupState> IPLS) override { in complete() argument
577 ES.OL_completeLookup(std::move(IPLS), std::move(Q), in complete()
623 LookupState::LookupState(std::unique_ptr<InProgressLookupState> IPLS) in LookupState() argument
624 : IPLS(std::move(IPLS)) {} in LookupState()
626 void LookupState::reset(InProgressLookupState *IPLS) { this->IPLS.reset(IPLS); } in reset() argument
634 assert(IPLS && "Cannot call continueLookup on empty LookupState"); in continueLookup()
635 auto &ES = IPLS->SearchOrder.begin()->first->getExecutionSession(); in continueLookup()
636 ES.OL_applyQueryPhase1(std::move(IPLS), std::move(Err)); in continueLookup()
2098 auto IPLS = std::make_unique<InProgressFullLookupState>( in lookup() local
2102 OL_applyQueryPhase1(std::move(IPLS), Error::success()); in lookup()
2384 std::unique_ptr<InProgressLookupState> IPLS, Error Err) { in OL_applyQueryPhase1() argument
2388 << " Lookup kind: " << IPLS->K << "\n" in OL_applyQueryPhase1()
2389 << " Search order: " << IPLS->SearchOrder in OL_applyQueryPhase1()
2390 << ", Current index = " << IPLS->CurSearchOrderIndex in OL_applyQueryPhase1()
2391 << (IPLS->NewJITDylib ? " (entering new JITDylib)" : "") << "\n" in OL_applyQueryPhase1()
2392 << " Lookup set: " << IPLS->LookupSet << "\n" in OL_applyQueryPhase1()
2394 << IPLS->DefGeneratorCandidates << "\n" in OL_applyQueryPhase1()
2396 << IPLS->DefGeneratorNonCandidates << "\n"; in OL_applyQueryPhase1()
2404 while (IPLS->CurSearchOrderIndex != IPLS->SearchOrder.size()) { in OL_applyQueryPhase1()
2410 return IPLS->fail(std::move(Err)); in OL_applyQueryPhase1()
2413 auto &KV = IPLS->SearchOrder[IPLS->CurSearchOrderIndex]; in OL_applyQueryPhase1()
2419 << ") with lookup set " << IPLS->LookupSet << ":\n"; in OL_applyQueryPhase1()
2423 if (IPLS->NewJITDylib) { in OL_applyQueryPhase1()
2426 IPLS->GeneratorLock = std::unique_lock<std::mutex>(JD.GeneratorsMutex); in OL_applyQueryPhase1()
2432 std::swap(IPLS->DefGeneratorNonCandidates, Tmp); in OL_applyQueryPhase1()
2433 IPLS->DefGeneratorCandidates.append(std::move(Tmp)); in OL_applyQueryPhase1()
2442 IPLS->CurDefGeneratorStack.reserve(JD.DefGenerators.size()); in OL_applyQueryPhase1()
2444 IPLS->CurDefGeneratorStack.push_back(DG); in OL_applyQueryPhase1()
2448 IPLS->NewJITDylib = false; in OL_applyQueryPhase1()
2458 JD, JDLookupFlags, IPLS->DefGeneratorCandidates, in OL_applyQueryPhase1()
2460 : &IPLS->DefGeneratorNonCandidates); in OL_applyQueryPhase1()
2462 dbgs() << " Remaining candidates = " << IPLS->DefGeneratorCandidates in OL_applyQueryPhase1()
2470 return IPLS->fail(std::move(Err)); in OL_applyQueryPhase1()
2474 if (IPLS->CurDefGeneratorStack.empty()) in OL_applyQueryPhase1()
2476 else if (IPLS->DefGeneratorCandidates.empty()) in OL_applyQueryPhase1()
2479 dbgs() << " Running " << IPLS->CurDefGeneratorStack.size() in OL_applyQueryPhase1()
2481 << IPLS->DefGeneratorCandidates.size() << " candidates\n"; in OL_applyQueryPhase1()
2483 while (!IPLS->CurDefGeneratorStack.empty() && in OL_applyQueryPhase1()
2484 !IPLS->DefGeneratorCandidates.empty()) { in OL_applyQueryPhase1()
2485 auto DG = IPLS->CurDefGeneratorStack.back().lock(); in OL_applyQueryPhase1()
2486 IPLS->CurDefGeneratorStack.pop_back(); in OL_applyQueryPhase1()
2489 return IPLS->fail(make_error<StringError>( in OL_applyQueryPhase1()
2493 auto K = IPLS->K; in OL_applyQueryPhase1()
2494 auto &LookupSet = IPLS->DefGeneratorCandidates; in OL_applyQueryPhase1()
2500 LookupState LS(std::move(IPLS)); in OL_applyQueryPhase1()
2502 IPLS = std::move(LS.IPLS); in OL_applyQueryPhase1()
2510 assert(IPLS && "LS cannot be retained if error is returned"); in OL_applyQueryPhase1()
2511 return IPLS->fail(std::move(Err)); in OL_applyQueryPhase1()
2515 if (!IPLS) { in OL_applyQueryPhase1()
2526 JD, JDLookupFlags, IPLS->DefGeneratorCandidates, in OL_applyQueryPhase1()
2528 : &IPLS->DefGeneratorNonCandidates); in OL_applyQueryPhase1()
2534 return IPLS->fail(std::move(Err)); in OL_applyQueryPhase1()
2538 if (IPLS->DefGeneratorCandidates.empty() && in OL_applyQueryPhase1()
2539 IPLS->DefGeneratorNonCandidates.empty()) { in OL_applyQueryPhase1()
2542 IPLS->CurSearchOrderIndex = IPLS->SearchOrder.size(); in OL_applyQueryPhase1()
2548 ++IPLS->CurSearchOrderIndex; in OL_applyQueryPhase1()
2549 IPLS->NewJITDylib = true; in OL_applyQueryPhase1()
2554 IPLS->DefGeneratorCandidates.remove_if( in OL_applyQueryPhase1()
2562 if (IPLS->DefGeneratorCandidates.empty()) { in OL_applyQueryPhase1()
2564 IPLS->complete(std::move(IPLS)); in OL_applyQueryPhase1()
2567 IPLS->fail(make_error<SymbolsNotFound>( in OL_applyQueryPhase1()
2568 getSymbolStringPool(), IPLS->DefGeneratorCandidates.getSymbolNames())); in OL_applyQueryPhase1()
2573 std::unique_ptr<InProgressLookupState> IPLS, in OL_completeLookup() argument
2579 << " Lookup kind: " << IPLS->K << "\n" in OL_completeLookup()
2580 << " Search order: " << IPLS->SearchOrder in OL_completeLookup()
2581 << ", Current index = " << IPLS->CurSearchOrderIndex in OL_completeLookup()
2582 << (IPLS->NewJITDylib ? " (entering new JITDylib)" : "") << "\n" in OL_completeLookup()
2583 << " Lookup set: " << IPLS->LookupSet << "\n" in OL_completeLookup()
2585 << IPLS->DefGeneratorCandidates << "\n" in OL_completeLookup()
2587 << IPLS->DefGeneratorNonCandidates << "\n"; in OL_completeLookup()
2594 for (auto &KV : IPLS->SearchOrder) { in OL_completeLookup()
2599 << ") with lookup set " << IPLS->LookupSet << ":\n"; in OL_completeLookup()
2602 auto Err = IPLS->LookupSet.forEachWithRemoval( in OL_completeLookup()
2742 IPLS->LookupSet.forEachWithRemoval( in OL_completeLookup()
2751 if (!IPLS->LookupSet.empty()) { in OL_completeLookup()
2754 IPLS->LookupSet.getSymbolNames()); in OL_completeLookup()
2812 std::unique_ptr<InProgressLookupState> IPLS, in OL_completeLookupFlags() argument
2818 << " Lookup kind: " << IPLS->K << "\n" in OL_completeLookupFlags()
2819 << " Search order: " << IPLS->SearchOrder in OL_completeLookupFlags()
2820 << ", Current index = " << IPLS->CurSearchOrderIndex in OL_completeLookupFlags()
2821 << (IPLS->NewJITDylib ? " (entering new JITDylib)" : "") << "\n" in OL_completeLookupFlags()
2822 << " Lookup set: " << IPLS->LookupSet << "\n" in OL_completeLookupFlags()
2824 << IPLS->DefGeneratorCandidates << "\n" in OL_completeLookupFlags()
2826 << IPLS->DefGeneratorNonCandidates << "\n"; in OL_completeLookupFlags()
2832 for (auto &KV : IPLS->SearchOrder) { in OL_completeLookupFlags()
2837 << ") with lookup set " << IPLS->LookupSet << ":\n"; in OL_completeLookupFlags()
2840 IPLS->LookupSet.forEachWithRemoval([&](const SymbolStringPtr &Name, in OL_completeLookupFlags()
2872 IPLS->LookupSet.remove_if( in OL_completeLookupFlags()
2877 if (!IPLS->LookupSet.empty()) { in OL_completeLookupFlags()
2880 IPLS->LookupSet.getSymbolNames()); in OL_completeLookupFlags()