Lines Matching refs:Machine
819 ModuleSlotTracker::ModuleSlotTracker(SlotTracker &Machine, const Module *M, in ModuleSlotTracker() argument
821 : M(M), F(F), Machine(&Machine) {} in ModuleSlotTracker()
832 return Machine; in getMachine()
837 Machine = MachineStorage.get(); in getMachine()
838 return Machine; in getMachine()
850 Machine->purgeFunction(); in incorporateFunction()
851 Machine->incorporateFunction(&F); in incorporateFunction()
857 return Machine->getLocalSlot(V); in getLocalSlot()
1235 SlotTracker *Machine,
1240 SlotTracker *Machine, const Module *Context,
1284 SlotTracker *Machine, in WriteConstantInternal() argument
1381 WriteAsOperandInternal(Out, BA->getFunction(), &TypePrinter, Machine, in WriteConstantInternal()
1384 WriteAsOperandInternal(Out, BA->getBasicBlock(), &TypePrinter, Machine, in WriteConstantInternal()
1396 &TypePrinter, Machine, in WriteConstantInternal()
1402 WriteAsOperandInternal(Out, CA->getOperand(i), &TypePrinter, Machine, in WriteConstantInternal()
1424 &TypePrinter, Machine, in WriteConstantInternal()
1431 Machine, Context); in WriteConstantInternal()
1447 WriteAsOperandInternal(Out, CS->getOperand(0), &TypePrinter, Machine, in WriteConstantInternal()
1455 WriteAsOperandInternal(Out, CS->getOperand(i), &TypePrinter, Machine, in WriteConstantInternal()
1473 Machine, Context); in WriteConstantInternal()
1479 Machine, Context); in WriteConstantInternal()
1522 WriteAsOperandInternal(Out, *OI, &TypePrinter, Machine, Context); in WriteConstantInternal()
1546 TypePrinting *TypePrinter, SlotTracker *Machine, in writeMDTuple() argument
1557 WriteAsOperandInternal(Out, V, TypePrinter, Machine, Context); in writeMDTuple()
1559 WriteAsOperandInternal(Out, MD, TypePrinter, Machine, Context); in writeMDTuple()
1589 SlotTracker *Machine = nullptr; member
1594 SlotTracker *Machine, const Module *Context) in MDFieldPrinter()
1595 : Out(Out), TypePrinter(TypePrinter), Machine(Machine), Context(Context) { in MDFieldPrinter()
1656 SlotTracker *Machine, in writeMetadataAsOperand() argument
1662 WriteAsOperandInternal(Out, MD, TypePrinter, Machine, Context); in writeMetadataAsOperand()
1671 writeMetadataAsOperand(Out, MD, TypePrinter, Machine, Context); in printMetadata()
1759 TypePrinting *TypePrinter, SlotTracker *Machine, in writeGenericDINode() argument
1762 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); in writeGenericDINode()
1770 writeMetadataAsOperand(Out, I, TypePrinter, Machine, Context); in writeGenericDINode()
1778 TypePrinting *TypePrinter, SlotTracker *Machine, in writeDILocation() argument
1781 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); in writeDILocation()
1793 TypePrinting *TypePrinter, SlotTracker *Machine, in writeDISubrange() argument
1796 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); in writeDISubrange()
1837 TypePrinting *TypePrinter, SlotTracker *Machine, in writeDIDerivedType() argument
1840 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); in writeDIDerivedType()
1861 SlotTracker *Machine, const Module *Context) { in writeDICompositeType() argument
1863 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); in writeDICompositeType()
1886 SlotTracker *Machine, const Module *Context) { in writeDISubroutineType() argument
1888 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); in writeDISubroutineType()
1913 TypePrinting *TypePrinter, SlotTracker *Machine, in writeDICompileUnit() argument
1916 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); in writeDICompileUnit()
1942 TypePrinting *TypePrinter, SlotTracker *Machine, in writeDISubprogram() argument
1945 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); in writeDISubprogram()
1969 TypePrinting *TypePrinter, SlotTracker *Machine, in writeDILexicalBlock() argument
1972 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); in writeDILexicalBlock()
1983 SlotTracker *Machine, in writeDILexicalBlockFile() argument
1986 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); in writeDILexicalBlockFile()
1995 TypePrinting *TypePrinter, SlotTracker *Machine, in writeDINamespace() argument
1998 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); in writeDINamespace()
2006 TypePrinting *TypePrinter, SlotTracker *Machine, in writeDIMacro() argument
2009 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); in writeDIMacro()
2018 TypePrinting *TypePrinter, SlotTracker *Machine, in writeDIMacroFile() argument
2021 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); in writeDIMacroFile()
2029 TypePrinting *TypePrinter, SlotTracker *Machine, in writeDIModule() argument
2032 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); in writeDIModule()
2045 SlotTracker *Machine, in writeDITemplateTypeParameter() argument
2048 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); in writeDITemplateTypeParameter()
2057 SlotTracker *Machine, in writeDITemplateValueParameter() argument
2060 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); in writeDITemplateValueParameter()
2071 SlotTracker *Machine, const Module *Context) { in writeDIGlobalVariable() argument
2073 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); in writeDIGlobalVariable()
2090 SlotTracker *Machine, const Module *Context) { in writeDILocalVariable() argument
2092 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); in writeDILocalVariable()
2106 SlotTracker *Machine, const Module *Context) { in writeDILabel() argument
2108 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); in writeDILabel()
2117 TypePrinting *TypePrinter, SlotTracker *Machine, in writeDIExpression() argument
2140 SlotTracker *Machine, in writeDIGlobalVariableExpression() argument
2143 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); in writeDIGlobalVariableExpression()
2150 TypePrinting *TypePrinter, SlotTracker *Machine, in writeDIObjCProperty() argument
2153 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); in writeDIObjCProperty()
2166 SlotTracker *Machine, const Module *Context) { in writeDIImportedEntity() argument
2168 MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); in writeDIImportedEntity()
2180 SlotTracker *Machine, in WriteMDNodeBodyInternal() argument
2192 write##CLASS(Out, cast<CLASS>(Node), TypePrinter, Machine, Context); \ in WriteMDNodeBodyInternal()
2202 SlotTracker *Machine, in WriteAsOperandInternal() argument
2212 WriteConstantInternal(Out, CV, *TypePrinter, Machine, Context); in WriteAsOperandInternal()
2234 WriteAsOperandInternal(Out, MD->getMetadata(), TypePrinter, Machine, in WriteAsOperandInternal()
2242 if (Machine) { in WriteAsOperandInternal()
2244 Slot = Machine->getGlobalSlot(GV); in WriteAsOperandInternal()
2247 Slot = Machine->getLocalSlot(V); in WriteAsOperandInternal()
2253 if ((Machine = createSlotTracker(V))) { in WriteAsOperandInternal()
2254 Slot = Machine->getLocalSlot(V); in WriteAsOperandInternal()
2255 delete Machine; in WriteAsOperandInternal()
2258 } else if ((Machine = createSlotTracker(V))) { in WriteAsOperandInternal()
2261 Slot = Machine->getGlobalSlot(GV); in WriteAsOperandInternal()
2264 Slot = Machine->getLocalSlot(V); in WriteAsOperandInternal()
2266 delete Machine; in WriteAsOperandInternal()
2267 Machine = nullptr; in WriteAsOperandInternal()
2280 SlotTracker *Machine, const Module *Context, in WriteAsOperandInternal() argument
2285 writeDIExpression(Out, Expr, TypePrinter, Machine, Context); in WriteAsOperandInternal()
2291 if (!Machine) { in WriteAsOperandInternal()
2293 Machine = MachineStorage.get(); in WriteAsOperandInternal()
2295 int Slot = Machine->getMetadataSlot(N); in WriteAsOperandInternal()
2298 writeDILocation(Out, Loc, TypePrinter, Machine, Context); in WriteAsOperandInternal()
2323 WriteAsOperandInternal(Out, V->getValue(), TypePrinter, Machine, Context); in WriteAsOperandInternal()
2333 SlotTracker &Machine; member in __anon1811b1fd0611::AssemblyWriter
2428 : Out(o), TheModule(M), Machine(Mac), TypePrinter(M), AnnotationWriter(AAW), in AssemblyWriter()
2440 : Out(o), TheIndex(Index), Machine(Mac), TypePrinter(/*Module=*/nullptr), in AssemblyWriter()
2452 WriteAsOperandInternal(Out, Operand, &TypePrinter, &Machine, TheModule); in writeOperand()
2509 WriteAsOperandInternal(Out, Operand, &TypePrinter, &Machine, TheModule); in writeParamOperand()
2540 WriteAsOperandInternal(Out, Input, &TypePrinter, &Machine, TheModule); in writeOperandBundles()
2550 Machine.initializeIfNeeded(); in printModule()
2626 if (!Machine.as_empty()) { in printModule()
2638 if (!Machine.mdn_empty()) { in printModule()
2646 Machine.initializeIndexIfNeeded(); in printModuleSummaryIndex()
2656 moduleVec[Machine.getModulePathSlot(ModPath.first())] = std::make_pair( in printModuleSummaryIndex()
2687 printSummaryInfo(Machine.getGUIDSlot(GUID), VI); in printModuleSummaryIndex()
2693 Out << "^" << Machine.getTypeIdSlot(TidIter->second.first) in printModuleSummaryIndex()
2842 Out << "^" << Machine.getGUIDSlot(SummaryToGUIDMap[&AS->getAliasee()]); in printAliasSummary()
2907 Out << "(callee: ^" << Machine.getGUIDSlot(Call.first.getGUID()); in printFunctionSummary()
2939 auto Slot = Machine.getTypeIdSlot(It->second.first); in printTypeIdInfo()
2981 auto Slot = Machine.getTypeIdSlot(It->second.first); in printVFuncId()
3021 Out << "(module: ^" << Machine.getModulePathSlot(Summary.modulePath()) in printSummary()
3044 Out << "^" << Machine.getGUIDSlot(Ref.getGUID()); in printSummary()
3110 int Slot = Machine.getMetadataSlot(Op); in printNamedMDNode()
3201 WriteAsOperandInternal(Out, GV, &TypePrinter, &Machine, GV->getParent()); in printGlobal()
3242 Out << " #" << Machine.getAttributeGroupSlot(Attrs); in printGlobal()
3251 WriteAsOperandInternal(Out, GIS, &TypePrinter, &Machine, GIS->getParent()); in printIndirectSymbol()
3346 Machine.incorporateFunction(F); in printFunction()
3373 WriteAsOperandInternal(Out, F, &TypePrinter, &Machine, F->getParent()); in printFunction()
3417 Out << " #" << Machine.getAttributeGroupSlot(Attrs.getFnAttributes()); in printFunction()
3459 Machine.purgeFunction(); in printFunction()
3487 int Slot = Machine.getLocalSlot(BB); in printBasicBlock()
3583 int SlotNum = Machine.getLocalSlot(&I); in printInstruction()
3794 Out << " #" << Machine.getAttributeGroupSlot(PAL.getFnAttributes()); in printInstruction()
3832 Out << " #" << Machine.getAttributeGroupSlot(PAL.getFnAttributes()); in printInstruction()
3972 WriteAsOperandInternal(Out, I.second, &TypePrinter, &Machine, TheModule); in printMetadataAttachments()
3984 Nodes.resize(Machine.mdn_size()); in writeAllMDNodes()
3985 for (SlotTracker::mdn_iterator I = Machine.mdn_begin(), E = Machine.mdn_end(); in writeAllMDNodes()
3995 WriteMDNodeBodyInternal(Out, Node, &TypePrinter, &Machine, TheModule); in printMDNodeBody()
4000 asVec.resize(Machine.as_size()); in writeAllAttributeGroups()
4002 for (SlotTracker::as_iterator I = Machine.as_begin(), E = Machine.as_end(); in writeAllAttributeGroups()
4012 bool IsInFunction = Machine.getFunction(); in printUseListOrder()
4204 SlotTracker *Machine, const Module *M) { in printWithoutType() argument
4207 WriteAsOperandInternal(O, &V, nullptr, Machine, M); in printWithoutType()
4234 SlotTracker Machine( in printAsOperand() local
4236 ModuleSlotTracker MST(Machine, M); in printAsOperand()