Lines Matching defs:Machine
876 ModuleSlotTracker::ModuleSlotTracker(SlotTracker &Machine, const Module *M,
878 : M(M), F(F), Machine(&Machine) {}
889 return Machine;
894 Machine = MachineStorage.get();
896 Machine->setProcessHook(ProcessModuleHookFn);
898 Machine->setProcessHook(ProcessFunctionHookFn);
899 return Machine;
911 Machine->purgeFunction();
912 Machine->incorporateFunction(&F);
918 return Machine->getLocalSlot(V);
1372 SlotTracker *Machine = nullptr;
1376 : TypePrinter(TP), Machine(ST), Context(M) {}
2598 auto *Machine = WriterCtx.Machine;
2600 if (Machine) {
2602 Slot = Machine->getGlobalSlot(GV);
2605 Slot = Machine->getLocalSlot(V);
2611 if ((Machine = createSlotTracker(V))) {
2612 Slot = Machine->getLocalSlot(V);
2613 delete Machine;
2616 } else if ((Machine = createSlotTracker(V))) {
2619 Slot = Machine->getGlobalSlot(GV);
2622 Slot = Machine->getLocalSlot(V);
2624 delete Machine;
2625 Machine = nullptr;
2652 SaveAndRestore SARMachine(WriterCtx.Machine);
2653 if (!WriterCtx.Machine) {
2655 WriterCtx.Machine = MachineStorage.get();
2657 int Slot = WriterCtx.Machine->getMetadataSlot(N);
2695 SlotTracker &Machine;
2717 return AsmWriterContext(&TypePrinter, &Machine, TheModule);
2803 : Out(o), TheModule(M), Machine(Mac), TypePrinter(M), AnnotationWriter(AAW),
2815 : Out(o), TheIndex(Index), Machine(Mac), TypePrinter(/*Module=*/nullptr),
2934 Machine.initializeIfNeeded();
3011 if (!Machine.as_empty()) {
3023 if (!Machine.mdn_empty()) {
3031 int NumSlots = Machine.initializeIndexIfNeeded();
3042 moduleVec[Machine.getModulePathSlot(ModPath)] = std::make_pair(
3071 printSummaryInfo(Machine.getGUIDSlot(GUID), VI);
3076 Out << "^" << Machine.getTypeIdSlot(TID.second.first)
3085 Out << "^" << Machine.getTypeIdCompatibleVtableSlot(TId.first)
3190 Out << "^" << Machine.getGUIDSlot(P.VTableVI.getGUID());
3258 Out << "^" << Machine.getGUIDSlot(SummaryToGUIDMap[&AS->getAliasee()]);
3278 Out << "(virtFunc: ^" << Machine.getGUIDSlot(P.FuncVI.getGUID())
3355 Out << "(callee: ^" << Machine.getGUIDSlot(Call.first.getGUID());
3423 Out << "(callee: ^" << Machine.getGUIDSlot(CI.Callee.getGUID());
3460 Out << "(callee: ^" << Machine.getGUIDSlot(Call.Callee.getGUID());
3492 auto Slot = Machine.getTypeIdSlot(It->second.first);
3534 auto Slot = Machine.getTypeIdSlot(It->second.first);
3575 Out << "(module: ^" << Machine.getModulePathSlot(Summary.modulePath())
3605 Out << "^" << Machine.getGUIDSlot(Ref.getGUID());
3671 int Slot = Machine.getMetadataSlot(Op);
3758 AsmWriterContext WriterCtx(&TypePrinter, &Machine, GV->getParent());
3840 Out << " #" << Machine.getAttributeGroupSlot(Attrs);
3849 AsmWriterContext WriterCtx(&TypePrinter, &Machine, GA->getParent());
3888 AsmWriterContext WriterCtx(&TypePrinter, &Machine, GI->getParent());
3974 Machine.incorporateFunction(F);
4000 AsmWriterContext WriterCtx(&TypePrinter, &Machine, F->getParent());
4048 Out << " #" << Machine.getAttributeGroupSlot(Attrs.getFnAttrs());
4095 Machine.purgeFunction();
4115 int Slot = Machine.getLocalSlot(Arg);
4130 int Slot = Machine.getLocalSlot(BB);
4230 int SlotNum = Machine.getLocalSlot(&I);
4442 Out << " #" << Machine.getAttributeGroupSlot(PAL.getFnAttrs());
4480 Out << " #" << Machine.getAttributeGroupSlot(PAL.getFnAttrs());
4520 Out << " #" << Machine.getAttributeGroupSlot(PAL.getFnAttrs());
4761 Nodes.resize(Machine.mdn_size());
4762 for (auto &I : llvm::make_range(Machine.mdn_begin(), Machine.mdn_end()))
4802 asVec.resize(Machine.as_size());
4804 for (auto &I : llvm::make_range(Machine.as_begin(), Machine.as_end()))
4814 bool IsInFunction = Machine.getFunction();
5083 SlotTracker *Machine, const Module *M) {
5086 AsmWriterContext WriterCtx(nullptr, Machine, M);
5114 SlotTracker Machine(
5116 ModuleSlotTracker MST(Machine, M);