Lines Matching refs:Machine

869 ModuleSlotTracker::ModuleSlotTracker(SlotTracker &Machine, const Module *M,  in ModuleSlotTracker()  argument
871 : M(M), F(F), Machine(&Machine) {} in ModuleSlotTracker()
882 return Machine; in getMachine()
887 Machine = MachineStorage.get(); in getMachine()
889 Machine->setProcessHook(ProcessModuleHookFn); in getMachine()
891 Machine->setProcessHook(ProcessFunctionHookFn); in getMachine()
892 return Machine; in getMachine()
904 Machine->purgeFunction(); in incorporateFunction()
905 Machine->incorporateFunction(&F); in incorporateFunction()
911 return Machine->getLocalSlot(V); in getLocalSlot()
1351 SlotTracker *Machine = nullptr; member
1355 : TypePrinter(TP), Machine(ST), Context(M) {} in AsmWriterContext()
2511 auto *Machine = WriterCtx.Machine; in WriteAsOperandInternal() local
2513 if (Machine) { in WriteAsOperandInternal()
2515 Slot = Machine->getGlobalSlot(GV); in WriteAsOperandInternal()
2518 Slot = Machine->getLocalSlot(V); in WriteAsOperandInternal()
2524 if ((Machine = createSlotTracker(V))) { in WriteAsOperandInternal()
2525 Slot = Machine->getLocalSlot(V); in WriteAsOperandInternal()
2526 delete Machine; in WriteAsOperandInternal()
2529 } else if ((Machine = createSlotTracker(V))) { in WriteAsOperandInternal()
2532 Slot = Machine->getGlobalSlot(GV); in WriteAsOperandInternal()
2535 Slot = Machine->getLocalSlot(V); in WriteAsOperandInternal()
2537 delete Machine; in WriteAsOperandInternal()
2538 Machine = nullptr; in WriteAsOperandInternal()
2565 SaveAndRestore SARMachine(WriterCtx.Machine); in WriteAsOperandInternal()
2566 if (!WriterCtx.Machine) { in WriteAsOperandInternal()
2568 WriterCtx.Machine = MachineStorage.get(); in WriteAsOperandInternal()
2570 int Slot = WriterCtx.Machine->getMetadataSlot(N); in WriteAsOperandInternal()
2608 SlotTracker &Machine; member in __anon6938d20e0911::AssemblyWriter
2630 return AsmWriterContext(&TypePrinter, &Machine, TheModule); in getContext()
2713 : Out(o), TheModule(M), Machine(Mac), TypePrinter(M), AnnotationWriter(AAW), in AssemblyWriter()
2725 : Out(o), TheIndex(Index), Machine(Mac), TypePrinter(/*Module=*/nullptr), in AssemblyWriter()
2844 Machine.initializeIfNeeded(); in printModule()
2921 if (!Machine.as_empty()) { in printModule()
2933 if (!Machine.mdn_empty()) { in printModule()
2941 int NumSlots = Machine.initializeIndexIfNeeded(); in printModuleSummaryIndex()
2952 moduleVec[Machine.getModulePathSlot(ModPath)] = std::make_pair( in printModuleSummaryIndex()
2981 printSummaryInfo(Machine.getGUIDSlot(GUID), VI); in printModuleSummaryIndex()
2986 Out << "^" << Machine.getTypeIdSlot(TID.second.first) in printModuleSummaryIndex()
2995 Out << "^" << Machine.getTypeIdCompatibleVtableSlot(TId.first) in printModuleSummaryIndex()
3100 Out << "^" << Machine.getGUIDSlot(P.VTableVI.getGUID()); in printTypeIdCompatibleVtableSummary()
3168 Out << "^" << Machine.getGUIDSlot(SummaryToGUIDMap[&AS->getAliasee()]); in printAliasSummary()
3188 Out << "(virtFunc: ^" << Machine.getGUIDSlot(P.FuncVI.getGUID()) in printGlobalVarSummary()
3255 Out << "(callee: ^" << Machine.getGUIDSlot(Call.first.getGUID()); in printFunctionSummary()
3323 Out << "(callee: ^" << Machine.getGUIDSlot(CI.Callee.getGUID()); in printFunctionSummary()
3360 Out << "(callee: ^" << Machine.getGUIDSlot(Call.Callee.getGUID()); in printFunctionSummary()
3392 auto Slot = Machine.getTypeIdSlot(It->second.first); in printTypeIdInfo()
3434 auto Slot = Machine.getTypeIdSlot(It->second.first); in printVFuncId()
3475 Out << "(module: ^" << Machine.getModulePathSlot(Summary.modulePath()) in printSummary()
3503 Out << "^" << Machine.getGUIDSlot(Ref.getGUID()); in printSummary()
3569 int Slot = Machine.getMetadataSlot(Op); in printNamedMDNode()
3656 AsmWriterContext WriterCtx(&TypePrinter, &Machine, GV->getParent()); in printGlobal()
3738 Out << " #" << Machine.getAttributeGroupSlot(Attrs); in printGlobal()
3747 AsmWriterContext WriterCtx(&TypePrinter, &Machine, GA->getParent()); in printAlias()
3786 AsmWriterContext WriterCtx(&TypePrinter, &Machine, GI->getParent()); in printIFunc()
3875 Machine.incorporateFunction(F); in printFunction()
3901 AsmWriterContext WriterCtx(&TypePrinter, &Machine, F->getParent()); in printFunction()
3949 Out << " #" << Machine.getAttributeGroupSlot(Attrs.getFnAttrs()); in printFunction()
3998 Machine.purgeFunction(); in printFunction()
4018 int Slot = Machine.getLocalSlot(Arg); in printArgument()
4033 int Slot = Machine.getLocalSlot(BB); in printBasicBlock()
4137 int SlotNum = Machine.getLocalSlot(&I); in printInstruction()
4349 Out << " #" << Machine.getAttributeGroupSlot(PAL.getFnAttrs()); in printInstruction()
4387 Out << " #" << Machine.getAttributeGroupSlot(PAL.getFnAttrs()); in printInstruction()
4427 Out << " #" << Machine.getAttributeGroupSlot(PAL.getFnAttrs()); in printInstruction()
4644 Nodes.resize(Machine.mdn_size()); in writeAllMDNodes()
4645 for (auto &I : llvm::make_range(Machine.mdn_begin(), Machine.mdn_end())) in writeAllMDNodes()
4685 asVec.resize(Machine.as_size()); in writeAllAttributeGroups()
4687 for (auto &I : llvm::make_range(Machine.as_begin(), Machine.as_end())) in writeAllAttributeGroups()
4697 bool IsInFunction = Machine.getFunction(); in printUseListOrder()
4955 SlotTracker *Machine, const Module *M) { in printWithoutType() argument
4958 AsmWriterContext WriterCtx(nullptr, Machine, M); in printWithoutType()
4986 SlotTracker Machine( in printAsOperand() local
4988 ModuleSlotTracker MST(Machine, M); in printAsOperand()