Lines Matching refs:Item
383 std::unique_ptr<EmitterWorkItem> Item;
401 // Add a dummy work item as a placeholder. This maintains sequence
403 Item = makeUnique<EmitterWorkItem>(Func->getSequenceNumber());
404 emitQueueBlockingPush(std::move(Item));
415 Item = makeUnique<EmitterWorkItem>(Func->getSequenceNumber());
430 Item = makeUnique<EmitterWorkItem>(Func->getSequenceNumber(),
432 Item->setGlobalInits(Func->getGlobalInits());
439 Item = makeUnique<EmitterWorkItem>(Func->getSequenceNumber(),
441 Item->setGlobalInits(std::move(GlobalInits));
445 assert(Item != nullptr);
446 emitQueueBlockingPush(std::move(Item));
575 // work items. When we're ready for the next item, we first check
576 // whether it's in the Pending list. If not, we take an item from
577 // the work queue, and if it's not the item we're waiting for, we
578 // insert it into Pending and repeat. The work item is deleted
605 // DesiredSequenceNumber. Continue the loop, do not emit the item.
646 // Emit the item from ShuffleStartIndex to ShuffleEndIndex.
648 std::unique_ptr<EmitterWorkItem> Item = std::move(Pending[I]);
650 switch (Item->getKind()) {
654 accumulateGlobals(Item->getGlobalInits());
658 accumulateGlobals(Item->getGlobalInits());
660 std::unique_ptr<Assembler> Asm = Item->getAsm();
680 llvm::report_fatal_error("WI_Cfg work item created inappropriately");
682 accumulateGlobals(Item->getGlobalInits());
685 std::unique_ptr<Cfg> Func = Item->getCfg();
972 void GlobalContext::optQueueBlockingPush(std::unique_ptr<OptWorkItem> Item) {
973 assert(Item);
976 OptQ.blockingPush(std::move(Item));
988 std::unique_ptr<EmitterWorkItem> Item) {
989 assert(Item);
992 EmitQ.blockingPush(std::move(Item));