• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/

Lines Matching refs:MU

259     std::unique_ptr<MaterializationUnit> MU) {
261 // If the replacement MU is empty then return.
262 if (MU->getSymbols().empty())
265 for (auto &KV : MU->getSymbols()) {
271 if (MU->getInitializerSymbol() == InitSymbol)
275 dbgs() << "In " << JD->getName() << " replacing symbols with " << *MU
279 JD->replace(std::move(MU));
349 assert(Symbols.count(Name) && "Symbol is not part of this MU");
655 void JITDylib::replace(std::unique_ptr<MaterializationUnit> MU) {
656 assert(MU != nullptr && "Can not replace with a null MaterializationUnit");
662 for (auto &KV : MU->getSymbols()) {
675 // materialize MU immediately.
676 for (auto &KV : MU->getSymbols()) {
680 return std::move(MU);
684 // Otherwise, make MU responsible for all the symbols.
685 auto UMI = std::make_shared<UnmaterializedInfo>(std::move(MU));
686 for (auto &KV : UMI->MU->getSymbols()) {
698 assert((!UMIEntry || !UMIEntry->MU) &&
1248 UMII->second->MU->doDiscard(*this, UMII->first);
1379 auto MU = std::move(UMII->second->MU);
1380 assert(MU != nullptr && "Materializer should not be null");
1384 for (auto &KV : MU->getSymbols()) {
1391 // Add MU to the list of MaterializationUnits to be materialized.
1392 MUs.push_back(std::move(MU));
1455 for (auto &MU : MUs) {
1456 auto MR = MU->createMaterializationResponsibility(ThisJD);
1457 ES.OutstandingMUs.push_back(make_pair(std::move(MU), std::move(MR)));
1463 // for (auto &MU : MUs)
1464 // ES.dispatchMaterialization(*this, std::move(MU));
1503 auto MU = std::move(UMII->second->MU);
1504 assert(MU != nullptr && "Materializer should not be null");
1508 for (auto &KV : MU->getSymbols()) {
1516 // Add MU to the list of MaterializationUnits to be materialized.
1517 MUs.push_back(std::move(MU));
1555 OS << I->second->MU.get() << ", " << I->second->MU->getName() << ")\n";
1621 Error JITDylib::defineImpl(MaterializationUnit &MU) {
1623 LLVM_DEBUG({ dbgs() << " " << MU.getSymbols() << "\n"; });
1629 for (const auto &KV : MU.getSymbols()) {
1655 // Discard any overridden defs in this MU.
1658 dbgs() << " Defs in this MU overridden: " << MUDefsOverridden << "\n";
1661 MU.doDiscard(*this, S);
1666 dbgs() << " Existing defs overridden by this MU: " << MUDefsOverridden
1674 UMII->second->MU->doDiscard(*this, S);
1677 // Finally, add the defs from this MU.
1678 for (auto &KV : MU.getSymbols()) {
1902 // will starve waiting for a result from an MU that is stuck in the queue.
1949 for (auto &MU : KV.second)
1950 KV.first->replace(std::move(MU));
1983 for (auto &MU : KV.second) {
1984 auto MR = MU->createMaterializationResponsibility(JD);
1985 OutstandingMUs.push_back(std::make_pair(std::move(MU), std::move(MR)));
2097 assert(JMU->first && "No MU?");
2103 void ExecutionSession::dumpDispatchInfo(JITDylib &JD, MaterializationUnit &MU) {
2105 dbgs() << "Dispatching " << MU << " for " << JD.getName() << "\n";