Lines Matching refs:Machine

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