Lines Matching refs:Out
299 static void PrintCallingConv(unsigned cc, raw_ostream &Out) { in PrintCallingConv() argument
301 default: Out << "cc" << cc; break; in PrintCallingConv()
302 case CallingConv::Fast: Out << "fastcc"; break; in PrintCallingConv()
303 case CallingConv::Cold: Out << "coldcc"; break; in PrintCallingConv()
304 case CallingConv::AnyReg: Out << "anyregcc"; break; in PrintCallingConv()
305 case CallingConv::PreserveMost: Out << "preserve_mostcc"; break; in PrintCallingConv()
306 case CallingConv::PreserveAll: Out << "preserve_allcc"; break; in PrintCallingConv()
307 case CallingConv::PreserveNone: Out << "preserve_nonecc"; break; in PrintCallingConv()
308 case CallingConv::CXX_FAST_TLS: Out << "cxx_fast_tlscc"; break; in PrintCallingConv()
309 case CallingConv::GHC: Out << "ghccc"; break; in PrintCallingConv()
310 case CallingConv::Tail: Out << "tailcc"; break; in PrintCallingConv()
311 case CallingConv::GRAAL: Out << "graalcc"; break; in PrintCallingConv()
312 case CallingConv::CFGuard_Check: Out << "cfguard_checkcc"; break; in PrintCallingConv()
313 case CallingConv::X86_StdCall: Out << "x86_stdcallcc"; break; in PrintCallingConv()
314 case CallingConv::X86_FastCall: Out << "x86_fastcallcc"; break; in PrintCallingConv()
315 case CallingConv::X86_ThisCall: Out << "x86_thiscallcc"; break; in PrintCallingConv()
316 case CallingConv::X86_RegCall: Out << "x86_regcallcc"; break; in PrintCallingConv()
317 case CallingConv::X86_VectorCall:Out << "x86_vectorcallcc"; break; in PrintCallingConv()
318 case CallingConv::Intel_OCL_BI: Out << "intel_ocl_bicc"; break; in PrintCallingConv()
319 case CallingConv::ARM_APCS: Out << "arm_apcscc"; break; in PrintCallingConv()
320 case CallingConv::ARM_AAPCS: Out << "arm_aapcscc"; break; in PrintCallingConv()
321 case CallingConv::ARM_AAPCS_VFP: Out << "arm_aapcs_vfpcc"; break; in PrintCallingConv()
322 case CallingConv::AArch64_VectorCall: Out << "aarch64_vector_pcs"; break; in PrintCallingConv()
324 Out << "aarch64_sve_vector_pcs"; in PrintCallingConv()
327 Out << "aarch64_sme_preservemost_from_x0"; in PrintCallingConv()
330 Out << "aarch64_sme_preservemost_from_x1"; in PrintCallingConv()
333 Out << "aarch64_sme_preservemost_from_x2"; in PrintCallingConv()
335 case CallingConv::MSP430_INTR: Out << "msp430_intrcc"; break; in PrintCallingConv()
336 case CallingConv::AVR_INTR: Out << "avr_intrcc "; break; in PrintCallingConv()
337 case CallingConv::AVR_SIGNAL: Out << "avr_signalcc "; break; in PrintCallingConv()
338 case CallingConv::PTX_Kernel: Out << "ptx_kernel"; break; in PrintCallingConv()
339 case CallingConv::PTX_Device: Out << "ptx_device"; break; in PrintCallingConv()
340 case CallingConv::X86_64_SysV: Out << "x86_64_sysvcc"; break; in PrintCallingConv()
341 case CallingConv::Win64: Out << "win64cc"; break; in PrintCallingConv()
342 case CallingConv::SPIR_FUNC: Out << "spir_func"; break; in PrintCallingConv()
343 case CallingConv::SPIR_KERNEL: Out << "spir_kernel"; break; in PrintCallingConv()
344 case CallingConv::Swift: Out << "swiftcc"; break; in PrintCallingConv()
345 case CallingConv::SwiftTail: Out << "swifttailcc"; break; in PrintCallingConv()
346 case CallingConv::X86_INTR: Out << "x86_intrcc"; break; in PrintCallingConv()
348 Out << "hhvmcc"; in PrintCallingConv()
351 Out << "hhvm_ccc"; in PrintCallingConv()
353 case CallingConv::AMDGPU_VS: Out << "amdgpu_vs"; break; in PrintCallingConv()
354 case CallingConv::AMDGPU_LS: Out << "amdgpu_ls"; break; in PrintCallingConv()
355 case CallingConv::AMDGPU_HS: Out << "amdgpu_hs"; break; in PrintCallingConv()
356 case CallingConv::AMDGPU_ES: Out << "amdgpu_es"; break; in PrintCallingConv()
357 case CallingConv::AMDGPU_GS: Out << "amdgpu_gs"; break; in PrintCallingConv()
358 case CallingConv::AMDGPU_PS: Out << "amdgpu_ps"; break; in PrintCallingConv()
359 case CallingConv::AMDGPU_CS: Out << "amdgpu_cs"; break; in PrintCallingConv()
361 Out << "amdgpu_cs_chain"; in PrintCallingConv()
364 Out << "amdgpu_cs_chain_preserve"; in PrintCallingConv()
366 case CallingConv::AMDGPU_KERNEL: Out << "amdgpu_kernel"; break; in PrintCallingConv()
367 case CallingConv::AMDGPU_Gfx: Out << "amdgpu_gfx"; break; in PrintCallingConv()
368 case CallingConv::M68k_RTD: Out << "m68k_rtdcc"; break; in PrintCallingConv()
370 Out << "riscv_vector_cc"; in PrintCallingConv()
445 static void PrintShuffleMask(raw_ostream &Out, Type *Ty, ArrayRef<int> Mask) { in PrintShuffleMask() argument
446 Out << ", <"; in PrintShuffleMask()
448 Out << "vscale x "; in PrintShuffleMask()
449 Out << Mask.size() << " x i32> "; in PrintShuffleMask()
452 Out << "zeroinitializer"; in PrintShuffleMask()
454 Out << "poison"; in PrintShuffleMask()
456 Out << "<"; in PrintShuffleMask()
461 Out << ", "; in PrintShuffleMask()
462 Out << "i32 "; in PrintShuffleMask()
464 Out << "poison"; in PrintShuffleMask()
466 Out << Elt; in PrintShuffleMask()
468 Out << ">"; in PrintShuffleMask()
1395 static void WriteAsOperandInternal(raw_ostream &Out, const Value *V,
1398 static void WriteAsOperandInternal(raw_ostream &Out, const Metadata *MD,
1402 static void WriteOptimizationInfo(raw_ostream &Out, const User *U) { in WriteOptimizationInfo() argument
1404 Out << FPO->getFastMathFlags(); in WriteOptimizationInfo()
1409 Out << " nuw"; in WriteOptimizationInfo()
1411 Out << " nsw"; in WriteOptimizationInfo()
1415 Out << " exact"; in WriteOptimizationInfo()
1419 Out << " disjoint"; in WriteOptimizationInfo()
1422 Out << " inbounds"; in WriteOptimizationInfo()
1424 Out << " nusw"; in WriteOptimizationInfo()
1426 Out << " nuw"; in WriteOptimizationInfo()
1428 Out << " inrange(" << InRange->getLower() << ", " << InRange->getUpper() in WriteOptimizationInfo()
1433 Out << " nneg"; in WriteOptimizationInfo()
1436 Out << " nuw"; in WriteOptimizationInfo()
1438 Out << " nsw"; in WriteOptimizationInfo()
1442 static void WriteAPFloatInternal(raw_ostream &Out, const APFloat &APF) { in WriteAPFloatInternal() argument
1468 Out << StrVal; in WriteAPFloatInternal()
1496 Out << format_hex(apf.bitcastToAPInt().getZExtValue(), 0, /*Upper=*/true); in WriteAPFloatInternal()
1503 Out << "0x"; in WriteAPFloatInternal()
1506 Out << 'K'; in WriteAPFloatInternal()
1507 Out << format_hex_no_prefix(API.getHiBits(16).getZExtValue(), 4, in WriteAPFloatInternal()
1509 Out << format_hex_no_prefix(API.getLoBits(64).getZExtValue(), 16, in WriteAPFloatInternal()
1512 Out << 'L'; in WriteAPFloatInternal()
1513 Out << format_hex_no_prefix(API.getLoBits(64).getZExtValue(), 16, in WriteAPFloatInternal()
1515 Out << format_hex_no_prefix(API.getHiBits(64).getZExtValue(), 16, in WriteAPFloatInternal()
1518 Out << 'M'; in WriteAPFloatInternal()
1519 Out << format_hex_no_prefix(API.getLoBits(64).getZExtValue(), 16, in WriteAPFloatInternal()
1521 Out << format_hex_no_prefix(API.getHiBits(64).getZExtValue(), 16, in WriteAPFloatInternal()
1524 Out << 'H'; in WriteAPFloatInternal()
1525 Out << format_hex_no_prefix(API.getZExtValue(), 4, in WriteAPFloatInternal()
1528 Out << 'R'; in WriteAPFloatInternal()
1529 Out << format_hex_no_prefix(API.getZExtValue(), 4, in WriteAPFloatInternal()
1535 static void WriteConstantInternal(raw_ostream &Out, const Constant *CV, in WriteConstantInternal() argument
1541 Out << "splat ("; in WriteConstantInternal()
1542 WriterCtx.TypePrinter->print(Ty->getScalarType(), Out); in WriteConstantInternal()
1543 Out << " "; in WriteConstantInternal()
1547 Out << (CI->getZExtValue() ? "true" : "false"); in WriteConstantInternal()
1549 Out << CI->getValue(); in WriteConstantInternal()
1552 Out << ")"; in WriteConstantInternal()
1561 Out << "splat ("; in WriteConstantInternal()
1562 WriterCtx.TypePrinter->print(Ty->getScalarType(), Out); in WriteConstantInternal()
1563 Out << " "; in WriteConstantInternal()
1566 WriteAPFloatInternal(Out, CFP->getValueAPF()); in WriteConstantInternal()
1569 Out << ")"; in WriteConstantInternal()
1575 Out << "zeroinitializer"; in WriteConstantInternal()
1580 Out << "blockaddress("; in WriteConstantInternal()
1581 WriteAsOperandInternal(Out, BA->getFunction(), WriterCtx); in WriteConstantInternal()
1582 Out << ", "; in WriteConstantInternal()
1583 WriteAsOperandInternal(Out, BA->getBasicBlock(), WriterCtx); in WriteConstantInternal()
1584 Out << ")"; in WriteConstantInternal()
1589 Out << "dso_local_equivalent "; in WriteConstantInternal()
1590 WriteAsOperandInternal(Out, Equiv->getGlobalValue(), WriterCtx); in WriteConstantInternal()
1595 Out << "no_cfi "; in WriteConstantInternal()
1596 WriteAsOperandInternal(Out, NC->getGlobalValue(), WriterCtx); in WriteConstantInternal()
1601 Out << "ptrauth ("; in WriteConstantInternal()
1612 Out << LS; in WriteConstantInternal()
1613 WriterCtx.TypePrinter->print(CPA->getOperand(i)->getType(), Out); in WriteConstantInternal()
1614 Out << ' '; in WriteConstantInternal()
1615 WriteAsOperandInternal(Out, CPA->getOperand(i), WriterCtx); in WriteConstantInternal()
1617 Out << ')'; in WriteConstantInternal()
1623 Out << '['; in WriteConstantInternal()
1624 WriterCtx.TypePrinter->print(ETy, Out); in WriteConstantInternal()
1625 Out << ' '; in WriteConstantInternal()
1626 WriteAsOperandInternal(Out, CA->getOperand(0), WriterCtx); in WriteConstantInternal()
1628 Out << ", "; in WriteConstantInternal()
1629 WriterCtx.TypePrinter->print(ETy, Out); in WriteConstantInternal()
1630 Out << ' '; in WriteConstantInternal()
1631 WriteAsOperandInternal(Out, CA->getOperand(i), WriterCtx); in WriteConstantInternal()
1633 Out << ']'; in WriteConstantInternal()
1641 Out << "c\""; in WriteConstantInternal()
1642 printEscapedString(CA->getAsString(), Out); in WriteConstantInternal()
1643 Out << '"'; in WriteConstantInternal()
1648 Out << '['; in WriteConstantInternal()
1649 WriterCtx.TypePrinter->print(ETy, Out); in WriteConstantInternal()
1650 Out << ' '; in WriteConstantInternal()
1651 WriteAsOperandInternal(Out, CA->getElementAsConstant(0), WriterCtx); in WriteConstantInternal()
1653 Out << ", "; in WriteConstantInternal()
1654 WriterCtx.TypePrinter->print(ETy, Out); in WriteConstantInternal()
1655 Out << ' '; in WriteConstantInternal()
1656 WriteAsOperandInternal(Out, CA->getElementAsConstant(i), WriterCtx); in WriteConstantInternal()
1658 Out << ']'; in WriteConstantInternal()
1664 Out << '<'; in WriteConstantInternal()
1665 Out << '{'; in WriteConstantInternal()
1668 Out << ' '; in WriteConstantInternal()
1669 WriterCtx.TypePrinter->print(CS->getOperand(0)->getType(), Out); in WriteConstantInternal()
1670 Out << ' '; in WriteConstantInternal()
1672 WriteAsOperandInternal(Out, CS->getOperand(0), WriterCtx); in WriteConstantInternal()
1675 Out << ", "; in WriteConstantInternal()
1676 WriterCtx.TypePrinter->print(CS->getOperand(i)->getType(), Out); in WriteConstantInternal()
1677 Out << ' '; in WriteConstantInternal()
1679 WriteAsOperandInternal(Out, CS->getOperand(i), WriterCtx); in WriteConstantInternal()
1681 Out << ' '; in WriteConstantInternal()
1684 Out << '}'; in WriteConstantInternal()
1686 Out << '>'; in WriteConstantInternal()
1693 Out << '<'; in WriteConstantInternal()
1694 WriterCtx.TypePrinter->print(ETy, Out); in WriteConstantInternal()
1695 Out << ' '; in WriteConstantInternal()
1696 WriteAsOperandInternal(Out, CV->getAggregateElement(0U), WriterCtx); in WriteConstantInternal()
1698 Out << ", "; in WriteConstantInternal()
1699 WriterCtx.TypePrinter->print(ETy, Out); in WriteConstantInternal()
1700 Out << ' '; in WriteConstantInternal()
1701 WriteAsOperandInternal(Out, CV->getAggregateElement(i), WriterCtx); in WriteConstantInternal()
1703 Out << '>'; in WriteConstantInternal()
1708 Out << "null"; in WriteConstantInternal()
1713 Out << "none"; in WriteConstantInternal()
1718 Out << "poison"; in WriteConstantInternal()
1723 Out << "undef"; in WriteConstantInternal()
1728 Out << CE->getOpcodeName(); in WriteConstantInternal()
1729 WriteOptimizationInfo(Out, CE); in WriteConstantInternal()
1730 Out << " ("; in WriteConstantInternal()
1733 WriterCtx.TypePrinter->print(GEP->getSourceElementType(), Out); in WriteConstantInternal()
1734 Out << ", "; in WriteConstantInternal()
1739 WriterCtx.TypePrinter->print((*OI)->getType(), Out); in WriteConstantInternal()
1740 Out << ' '; in WriteConstantInternal()
1741 WriteAsOperandInternal(Out, *OI, WriterCtx); in WriteConstantInternal()
1743 Out << ", "; in WriteConstantInternal()
1747 Out << " to "; in WriteConstantInternal()
1748 WriterCtx.TypePrinter->print(CE->getType(), Out); in WriteConstantInternal()
1752 PrintShuffleMask(Out, CE->getType(), CE->getShuffleMask()); in WriteConstantInternal()
1754 Out << ')'; in WriteConstantInternal()
1758 Out << "<placeholder or erroneous Constant>"; in WriteConstantInternal()
1761 static void writeMDTuple(raw_ostream &Out, const MDTuple *Node, in writeMDTuple() argument
1763 Out << "!{"; in writeMDTuple()
1767 Out << "null"; in writeMDTuple()
1770 WriterCtx.TypePrinter->print(V->getType(), Out); in writeMDTuple()
1771 Out << ' '; in writeMDTuple()
1772 WriteAsOperandInternal(Out, V, WriterCtx); in writeMDTuple()
1774 WriteAsOperandInternal(Out, MD, WriterCtx); in writeMDTuple()
1778 Out << ", "; in writeMDTuple()
1781 Out << "}"; in writeMDTuple()
1802 raw_ostream &Out; member
1806 explicit MDFieldPrinter(raw_ostream &Out) in MDFieldPrinter()
1807 : Out(Out), WriterCtx(AsmWriterContext::getEmpty()) {} in MDFieldPrinter()
1808 MDFieldPrinter(raw_ostream &Out, AsmWriterContext &Ctx) in MDFieldPrinter()
1809 : Out(Out), WriterCtx(Ctx) {} in MDFieldPrinter()
1837 Out << FS << "tag: "; in printTag()
1840 Out << Tag; in printTag()
1842 Out << N->getTag(); in printTag()
1846 Out << FS << "type: "; in printMacinfoType()
1849 Out << Type; in printMacinfoType()
1851 Out << N->getMacinfoType(); in printMacinfoType()
1856 Out << FS << "checksumkind: " << Checksum.getKindAsString(); in printChecksum()
1865 Out << FS << Name << ": \""; in printString()
1866 printEscapedString(Value, Out); in printString()
1867 Out << "\""; in printString()
1870 static void writeMetadataAsOperand(raw_ostream &Out, const Metadata *MD, in writeMetadataAsOperand() argument
1873 Out << "null"; in writeMetadataAsOperand()
1876 WriteAsOperandInternal(Out, MD, WriterCtx); in writeMetadataAsOperand()
1885 Out << FS << Name << ": "; in printMetadata()
1886 writeMetadataAsOperand(Out, MD, WriterCtx); in printMetadata()
1894 Out << FS << Name << ": " << Int; in printInt()
1902 Out << FS << Name << ": "; in printAPInt()
1903 Int.print(Out, !IsUnsigned); in printAPInt()
1910 Out << FS << Name << ": " << (Value ? "true" : "false"); in printBool()
1917 Out << FS << Name << ": "; in printDIFlags()
1926 Out << FlagsFS << StringF; in printDIFlags()
1929 Out << FlagsFS << Extra; in printDIFlags()
1936 Out << FS << Name << ": "; in printDISPFlags()
1939 Out << 0; in printDISPFlags()
1950 Out << FlagsFS << StringF; in printDISPFlags()
1953 Out << FlagsFS << Extra; in printDISPFlags()
1958 Out << FS << Name << ": " << DICompileUnit::emissionKindString(EK); in printEmissionKind()
1965 Out << FS << Name << ": " << DICompileUnit::nameTableKindString(NTK); in printNameTableKind()
1974 Out << FS << Name << ": "; in printDwarfEnum()
1977 Out << S; in printDwarfEnum()
1979 Out << Value; in printDwarfEnum()
1982 static void writeGenericDINode(raw_ostream &Out, const GenericDINode *N, in writeGenericDINode() argument
1984 Out << "!GenericDINode("; in writeGenericDINode()
1985 MDFieldPrinter Printer(Out, WriterCtx); in writeGenericDINode()
1989 Out << Printer.FS << "operands: {"; in writeGenericDINode()
1992 Out << IFS; in writeGenericDINode()
1993 writeMetadataAsOperand(Out, I, WriterCtx); in writeGenericDINode()
1995 Out << "}"; in writeGenericDINode()
1997 Out << ")"; in writeGenericDINode()
2000 static void writeDILocation(raw_ostream &Out, const DILocation *DL, in writeDILocation() argument
2002 Out << "!DILocation("; in writeDILocation()
2003 MDFieldPrinter Printer(Out, WriterCtx); in writeDILocation()
2011 Out << ")"; in writeDILocation()
2014 static void writeDIAssignID(raw_ostream &Out, const DIAssignID *DL, in writeDIAssignID() argument
2016 Out << "!DIAssignID()"; in writeDIAssignID()
2017 MDFieldPrinter Printer(Out, WriterCtx); in writeDIAssignID()
2020 static void writeDISubrange(raw_ostream &Out, const DISubrange *N, in writeDISubrange() argument
2022 Out << "!DISubrange("; in writeDISubrange()
2023 MDFieldPrinter Printer(Out, WriterCtx); in writeDISubrange()
2058 Out << ")"; in writeDISubrange()
2061 static void writeDIGenericSubrange(raw_ostream &Out, const DIGenericSubrange *N, in writeDIGenericSubrange() argument
2063 Out << "!DIGenericSubrange("; in writeDIGenericSubrange()
2064 MDFieldPrinter Printer(Out, WriterCtx); in writeDIGenericSubrange()
2109 Out << ")"; in writeDIGenericSubrange()
2112 static void writeDIEnumerator(raw_ostream &Out, const DIEnumerator *N, in writeDIEnumerator() argument
2114 Out << "!DIEnumerator("; in writeDIEnumerator()
2115 MDFieldPrinter Printer(Out); in writeDIEnumerator()
2121 Out << ")"; in writeDIEnumerator()
2124 static void writeDIBasicType(raw_ostream &Out, const DIBasicType *N, in writeDIBasicType() argument
2126 Out << "!DIBasicType("; in writeDIBasicType()
2127 MDFieldPrinter Printer(Out); in writeDIBasicType()
2136 Out << ")"; in writeDIBasicType()
2139 static void writeDIStringType(raw_ostream &Out, const DIStringType *N, in writeDIStringType() argument
2141 Out << "!DIStringType("; in writeDIStringType()
2142 MDFieldPrinter Printer(Out, WriterCtx); in writeDIStringType()
2154 Out << ")"; in writeDIStringType()
2157 static void writeDIDerivedType(raw_ostream &Out, const DIDerivedType *N, in writeDIDerivedType() argument
2159 Out << "!DIDerivedType("; in writeDIDerivedType()
2160 MDFieldPrinter Printer(Out, WriterCtx); in writeDIDerivedType()
2187 Out << ")"; in writeDIDerivedType()
2190 static void writeDICompositeType(raw_ostream &Out, const DICompositeType *N, in writeDICompositeType() argument
2192 Out << "!DICompositeType("; in writeDICompositeType()
2193 MDFieldPrinter Printer(Out, WriterCtx); in writeDICompositeType()
2220 Out << ")"; in writeDICompositeType()
2223 static void writeDISubroutineType(raw_ostream &Out, const DISubroutineType *N, in writeDISubroutineType() argument
2225 Out << "!DISubroutineType("; in writeDISubroutineType()
2226 MDFieldPrinter Printer(Out, WriterCtx); in writeDISubroutineType()
2231 Out << ")"; in writeDISubroutineType()
2234 static void writeDIFile(raw_ostream &Out, const DIFile *N, AsmWriterContext &) { in writeDIFile() argument
2235 Out << "!DIFile("; in writeDIFile()
2236 MDFieldPrinter Printer(Out); in writeDIFile()
2246 Out << ")"; in writeDIFile()
2249 static void writeDICompileUnit(raw_ostream &Out, const DICompileUnit *N, in writeDICompileUnit() argument
2251 Out << "!DICompileUnit("; in writeDICompileUnit()
2252 MDFieldPrinter Printer(Out, WriterCtx); in writeDICompileUnit()
2276 Out << ")"; in writeDICompileUnit()
2279 static void writeDISubprogram(raw_ostream &Out, const DISubprogram *N, in writeDISubprogram() argument
2281 Out << "!DISubprogram("; in writeDISubprogram()
2282 MDFieldPrinter Printer(Out, WriterCtx); in writeDISubprogram()
2304 Out << ")"; in writeDISubprogram()
2307 static void writeDILexicalBlock(raw_ostream &Out, const DILexicalBlock *N, in writeDILexicalBlock() argument
2309 Out << "!DILexicalBlock("; in writeDILexicalBlock()
2310 MDFieldPrinter Printer(Out, WriterCtx); in writeDILexicalBlock()
2315 Out << ")"; in writeDILexicalBlock()
2318 static void writeDILexicalBlockFile(raw_ostream &Out, in writeDILexicalBlockFile() argument
2321 Out << "!DILexicalBlockFile("; in writeDILexicalBlockFile()
2322 MDFieldPrinter Printer(Out, WriterCtx); in writeDILexicalBlockFile()
2327 Out << ")"; in writeDILexicalBlockFile()
2330 static void writeDINamespace(raw_ostream &Out, const DINamespace *N, in writeDINamespace() argument
2332 Out << "!DINamespace("; in writeDINamespace()
2333 MDFieldPrinter Printer(Out, WriterCtx); in writeDINamespace()
2337 Out << ")"; in writeDINamespace()
2340 static void writeDICommonBlock(raw_ostream &Out, const DICommonBlock *N, in writeDICommonBlock() argument
2342 Out << "!DICommonBlock("; in writeDICommonBlock()
2343 MDFieldPrinter Printer(Out, WriterCtx); in writeDICommonBlock()
2349 Out << ")"; in writeDICommonBlock()
2352 static void writeDIMacro(raw_ostream &Out, const DIMacro *N, in writeDIMacro() argument
2354 Out << "!DIMacro("; in writeDIMacro()
2355 MDFieldPrinter Printer(Out, WriterCtx); in writeDIMacro()
2360 Out << ")"; in writeDIMacro()
2363 static void writeDIMacroFile(raw_ostream &Out, const DIMacroFile *N, in writeDIMacroFile() argument
2365 Out << "!DIMacroFile("; in writeDIMacroFile()
2366 MDFieldPrinter Printer(Out, WriterCtx); in writeDIMacroFile()
2370 Out << ")"; in writeDIMacroFile()
2373 static void writeDIModule(raw_ostream &Out, const DIModule *N, in writeDIModule() argument
2375 Out << "!DIModule("; in writeDIModule()
2376 MDFieldPrinter Printer(Out, WriterCtx); in writeDIModule()
2385 Out << ")"; in writeDIModule()
2388 static void writeDITemplateTypeParameter(raw_ostream &Out, in writeDITemplateTypeParameter() argument
2391 Out << "!DITemplateTypeParameter("; in writeDITemplateTypeParameter()
2392 MDFieldPrinter Printer(Out, WriterCtx); in writeDITemplateTypeParameter()
2396 Out << ")"; in writeDITemplateTypeParameter()
2399 static void writeDITemplateValueParameter(raw_ostream &Out, in writeDITemplateValueParameter() argument
2402 Out << "!DITemplateValueParameter("; in writeDITemplateValueParameter()
2403 MDFieldPrinter Printer(Out, WriterCtx); in writeDITemplateValueParameter()
2410 Out << ")"; in writeDITemplateValueParameter()
2413 static void writeDIGlobalVariable(raw_ostream &Out, const DIGlobalVariable *N, in writeDIGlobalVariable() argument
2415 Out << "!DIGlobalVariable("; in writeDIGlobalVariable()
2416 MDFieldPrinter Printer(Out, WriterCtx); in writeDIGlobalVariable()
2429 Out << ")"; in writeDIGlobalVariable()
2432 static void writeDILocalVariable(raw_ostream &Out, const DILocalVariable *N, in writeDILocalVariable() argument
2434 Out << "!DILocalVariable("; in writeDILocalVariable()
2435 MDFieldPrinter Printer(Out, WriterCtx); in writeDILocalVariable()
2445 Out << ")"; in writeDILocalVariable()
2448 static void writeDILabel(raw_ostream &Out, const DILabel *N, in writeDILabel() argument
2450 Out << "!DILabel("; in writeDILabel()
2451 MDFieldPrinter Printer(Out, WriterCtx); in writeDILabel()
2456 Out << ")"; in writeDILabel()
2459 static void writeDIExpression(raw_ostream &Out, const DIExpression *N, in writeDIExpression() argument
2461 Out << "!DIExpression("; in writeDIExpression()
2468 Out << FS << OpStr; in writeDIExpression()
2470 Out << FS << Op.getArg(0); in writeDIExpression()
2471 Out << FS << dwarf::AttributeEncodingString(Op.getArg(1)); in writeDIExpression()
2474 Out << FS << Op.getArg(A); in writeDIExpression()
2479 Out << FS << I; in writeDIExpression()
2481 Out << ")"; in writeDIExpression()
2484 static void writeDIArgList(raw_ostream &Out, const DIArgList *N, in writeDIArgList() argument
2489 Out << "!DIArgList("; in writeDIArgList()
2491 MDFieldPrinter Printer(Out, WriterCtx); in writeDIArgList()
2493 Out << FS; in writeDIArgList()
2494 WriteAsOperandInternal(Out, Arg, WriterCtx, true); in writeDIArgList()
2496 Out << ")"; in writeDIArgList()
2499 static void writeDIGlobalVariableExpression(raw_ostream &Out, in writeDIGlobalVariableExpression() argument
2502 Out << "!DIGlobalVariableExpression("; in writeDIGlobalVariableExpression()
2503 MDFieldPrinter Printer(Out, WriterCtx); in writeDIGlobalVariableExpression()
2506 Out << ")"; in writeDIGlobalVariableExpression()
2509 static void writeDIObjCProperty(raw_ostream &Out, const DIObjCProperty *N, in writeDIObjCProperty() argument
2511 Out << "!DIObjCProperty("; in writeDIObjCProperty()
2512 MDFieldPrinter Printer(Out, WriterCtx); in writeDIObjCProperty()
2520 Out << ")"; in writeDIObjCProperty()
2523 static void writeDIImportedEntity(raw_ostream &Out, const DIImportedEntity *N, in writeDIImportedEntity() argument
2525 Out << "!DIImportedEntity("; in writeDIImportedEntity()
2526 MDFieldPrinter Printer(Out, WriterCtx); in writeDIImportedEntity()
2534 Out << ")"; in writeDIImportedEntity()
2537 static void WriteMDNodeBodyInternal(raw_ostream &Out, const MDNode *Node, in WriteMDNodeBodyInternal() argument
2540 Out << "distinct "; in WriteMDNodeBodyInternal()
2542 Out << "<temporary!> "; // Handle broken code. in WriteMDNodeBodyInternal()
2549 write##CLASS(Out, cast<CLASS>(Node), Ctx); \ in WriteMDNodeBodyInternal()
2557 static void WriteAsOperandInternal(raw_ostream &Out, const Value *V, in WriteAsOperandInternal() argument
2560 PrintLLVMName(Out, V); in WriteAsOperandInternal()
2567 WriteConstantInternal(Out, CV, WriterCtx); in WriteAsOperandInternal()
2572 Out << "asm "; in WriteAsOperandInternal()
2574 Out << "sideeffect "; in WriteAsOperandInternal()
2576 Out << "alignstack "; in WriteAsOperandInternal()
2579 Out << "inteldialect "; in WriteAsOperandInternal()
2581 Out << "unwind "; in WriteAsOperandInternal()
2582 Out << '"'; in WriteAsOperandInternal()
2583 printEscapedString(IA->getAsmString(), Out); in WriteAsOperandInternal()
2584 Out << "\", \""; in WriteAsOperandInternal()
2585 printEscapedString(IA->getConstraintString(), Out); in WriteAsOperandInternal()
2586 Out << '"'; in WriteAsOperandInternal()
2591 WriteAsOperandInternal(Out, MD->getMetadata(), WriterCtx, in WriteAsOperandInternal()
2631 Out << Prefix << Slot; in WriteAsOperandInternal()
2633 Out << "<badref>"; in WriteAsOperandInternal()
2636 static void WriteAsOperandInternal(raw_ostream &Out, const Metadata *MD, in WriteAsOperandInternal() argument
2642 writeDIExpression(Out, Expr, WriterCtx); in WriteAsOperandInternal()
2646 writeDIArgList(Out, ArgList, WriterCtx, FromValue); in WriteAsOperandInternal()
2660 writeDILocation(Out, Loc, WriterCtx); in WriteAsOperandInternal()
2665 Out << "<" << N << ">"; in WriteAsOperandInternal()
2667 Out << '!' << Slot; in WriteAsOperandInternal()
2672 Out << "!\""; in WriteAsOperandInternal()
2673 printEscapedString(MDS->getString(), Out); in WriteAsOperandInternal()
2674 Out << '"'; in WriteAsOperandInternal()
2683 WriterCtx.TypePrinter->print(V->getValue()->getType(), Out); in WriteAsOperandInternal()
2684 Out << ' '; in WriteAsOperandInternal()
2685 WriteAsOperandInternal(Out, V->getValue(), WriterCtx); in WriteAsOperandInternal()
2691 formatted_raw_ostream &Out; member in __anon33b632580911::AssemblyWriter
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()
2820 Out << "<null operand!>"; in writeOperand()
2824 TypePrinter.print(Operand->getType(), Out); in writeOperand()
2825 Out << ' '; in writeOperand()
2828 WriteAsOperandInternal(Out, Operand, WriterCtx); in writeOperand()
2841 Out << " syncscope(\""; in writeSyncScope()
2842 printEscapedString(SSNs[SSID], Out); in writeSyncScope()
2843 Out << "\")"; in writeSyncScope()
2856 Out << " " << toIRString(Ordering); in writeAtomic()
2867 Out << " " << toIRString(SuccessOrdering); in writeAtomicCmpXchg()
2868 Out << " " << toIRString(FailureOrdering); in writeAtomicCmpXchg()
2874 Out << "<null operand!>"; in writeParamOperand()
2879 TypePrinter.print(Operand->getType(), Out); in writeParamOperand()
2882 Out << ' '; in writeParamOperand()
2885 Out << ' '; in writeParamOperand()
2888 WriteAsOperandInternal(Out, Operand, WriterCtx); in writeParamOperand()
2895 Out << " [ "; in writeOperandBundles()
2902 Out << ", "; in writeOperandBundles()
2905 Out << '"'; in writeOperandBundles()
2906 printEscapedString(BU.getTagName(), Out); in writeOperandBundles()
2907 Out << '"'; in writeOperandBundles()
2909 Out << '('; in writeOperandBundles()
2915 Out << ", "; in writeOperandBundles()
2919 Out << "<null operand bundle!>"; in writeOperandBundles()
2921 TypePrinter.print(Input->getType(), Out); in writeOperandBundles()
2922 Out << " "; in writeOperandBundles()
2923 WriteAsOperandInternal(Out, Input, WriterCtx); in writeOperandBundles()
2927 Out << ')'; in writeOperandBundles()
2930 Out << " ]"; in writeOperandBundles()
2943 Out << "; ModuleID = '" << M->getModuleIdentifier() << "'\n"; in printModule()
2946 Out << "source_filename = \""; in printModule()
2947 printEscapedString(M->getSourceFileName(), Out); in printModule()
2948 Out << "\"\n"; in printModule()
2953 Out << "target datalayout = \"" << DL << "\"\n"; in printModule()
2955 Out << "target triple = \"" << M->getTargetTriple() << "\"\n"; in printModule()
2958 Out << '\n'; in printModule()
2968 Out << "module asm \""; in printModule()
2969 printEscapedString(Front, Out); in printModule()
2970 Out << "\"\n"; in printModule()
2978 Out << '\n'; in printModule()
2982 Out << '\n'; in printModule()
2986 if (!M->global_empty()) Out << '\n'; in printModule()
2988 printGlobal(&GV); Out << '\n'; in printModule()
2992 if (!M->alias_empty()) Out << "\n"; in printModule()
2997 if (!M->ifunc_empty()) Out << "\n"; in printModule()
3003 Out << '\n'; in printModule()
3012 Out << '\n'; in printModule()
3017 if (!M->named_metadata_empty()) Out << '\n'; in printModule()
3024 Out << '\n'; in printModule()
3033 Out << "\n"; in printModuleSummaryIndex()
3049 Out << "^" << i++ << " = module: ("; in printModuleSummaryIndex()
3050 Out << "path: \""; in printModuleSummaryIndex()
3051 printEscapedString(ModPair.first, Out); in printModuleSummaryIndex()
3052 Out << "\", hash: ("; in printModuleSummaryIndex()
3055 Out << FS << Hash; in printModuleSummaryIndex()
3056 Out << "))\n"; in printModuleSummaryIndex()
3076 Out << "^" << Machine.getTypeIdSlot(TID.second.first) in printModuleSummaryIndex()
3079 Out << ") ; guid = " << TID.first << "\n"; in printModuleSummaryIndex()
3085 Out << "^" << Machine.getTypeIdCompatibleVtableSlot(TId.first) in printModuleSummaryIndex()
3088 Out << ") ; guid = " << GUID << "\n"; in printModuleSummaryIndex()
3093 Out << "^" << NumSlots << " = flags: " << TheIndex->getFlags() << "\n"; in printModuleSummaryIndex()
3097 Out << "^" << NumSlots << " = blockcount: " << TheIndex->getBlockCount() in printModuleSummaryIndex()
3148 Out << "typeTestRes: (kind: " << getTTResKindName(TTRes.TheKind) in printTypeTestResolution()
3154 Out << ", alignLog2: " << TTRes.AlignLog2; in printTypeTestResolution()
3156 Out << ", sizeM1: " << TTRes.SizeM1; in printTypeTestResolution()
3159 Out << ", bitMask: " << (unsigned)TTRes.BitMask; in printTypeTestResolution()
3161 Out << ", inlineBits: " << TTRes.InlineBits; in printTypeTestResolution()
3163 Out << ")"; in printTypeTestResolution()
3167 Out << ", summary: ("; in printTypeIdSummary()
3170 Out << ", wpdResolutions: ("; in printTypeIdSummary()
3173 Out << FS; in printTypeIdSummary()
3174 Out << "(offset: " << WPDRes.first << ", "; in printTypeIdSummary()
3176 Out << ")"; in printTypeIdSummary()
3178 Out << ")"; in printTypeIdSummary()
3180 Out << ")"; in printTypeIdSummary()
3185 Out << ", summary: ("; in printTypeIdCompatibleVtableSummary()
3188 Out << FS; in printTypeIdCompatibleVtableSummary()
3189 Out << "(offset: " << P.AddressPointOffset << ", "; in printTypeIdCompatibleVtableSummary()
3190 Out << "^" << Machine.getGUIDSlot(P.VTableVI.getGUID()); in printTypeIdCompatibleVtableSummary()
3191 Out << ")"; in printTypeIdCompatibleVtableSummary()
3193 Out << ")"; in printTypeIdCompatibleVtableSummary()
3197 Out << "args: ("; in printArgs()
3200 Out << FS; in printArgs()
3201 Out << arg; in printArgs()
3203 Out << ")"; in printArgs()
3207 Out << "wpdRes: (kind: "; in printWPDRes()
3208 Out << getWholeProgDevirtResKindName(WPDRes.TheKind); in printWPDRes()
3211 Out << ", singleImplName: \"" << WPDRes.SingleImplName << "\""; in printWPDRes()
3214 Out << ", resByArg: ("; in printWPDRes()
3217 Out << FS; in printWPDRes()
3219 Out << ", byArg: (kind: "; in printWPDRes()
3220 Out << getWholeProgDevirtResByArgKindName(ResByArg.second.TheKind); in printWPDRes()
3225 Out << ", info: " << ResByArg.second.Info; in printWPDRes()
3230 Out << ", byte: " << ResByArg.second.Byte in printWPDRes()
3233 Out << ")"; in printWPDRes()
3235 Out << ")"; in printWPDRes()
3237 Out << ")"; in printWPDRes()
3253 Out << ", aliasee: "; in printAliasSummary()
3258 Out << "^" << Machine.getGUIDSlot(SummaryToGUIDMap[&AS->getAliasee()]); in printAliasSummary()
3260 Out << "null"; in printAliasSummary()
3265 Out << ", varFlags: (readonly: " << GS->VarFlags.MaybeReadOnly << ", " in printGlobalVarSummary()
3269 Out << ", " in printGlobalVarSummary()
3271 Out << ")"; in printGlobalVarSummary()
3274 Out << ", vTableFuncs: ("; in printGlobalVarSummary()
3277 Out << FS; in printGlobalVarSummary()
3278 Out << "(virtFunc: ^" << Machine.getGUIDSlot(P.FuncVI.getGUID()) in printGlobalVarSummary()
3280 Out << ")"; in printGlobalVarSummary()
3282 Out << ")"; in printGlobalVarSummary()
3346 Out << ", insts: " << FS->instCount(); in printFunctionSummary()
3348 Out << ", " << FS->fflags(); in printFunctionSummary()
3351 Out << ", calls: ("; in printFunctionSummary()
3354 Out << IFS; in printFunctionSummary()
3355 Out << "(callee: ^" << Machine.getGUIDSlot(Call.first.getGUID()); in printFunctionSummary()
3357 Out << ", hotness: " << getHotnessName(Call.second.getHotness()); in printFunctionSummary()
3359 Out << ", relbf: " << Call.second.RelBlockFreq; in printFunctionSummary()
3363 Out << ", tail: 1"; in printFunctionSummary()
3364 Out << ")"; in printFunctionSummary()
3366 Out << ")"; in printFunctionSummary()
3389 Out << ", allocs: ("; in printFunctionSummary()
3392 Out << AFS; in printFunctionSummary()
3393 Out << "(versions: ("; in printFunctionSummary()
3396 Out << VFS; in printFunctionSummary()
3397 Out << AllocTypeName(V); in printFunctionSummary()
3399 Out << "), memProf: ("; in printFunctionSummary()
3402 Out << MIBFS; in printFunctionSummary()
3403 Out << "(type: " << AllocTypeName((uint8_t)MIB.AllocType); in printFunctionSummary()
3404 Out << ", stackIds: ("; in printFunctionSummary()
3407 Out << SIDFS; in printFunctionSummary()
3408 Out << TheIndex->getStackIdAtIndex(Id); in printFunctionSummary()
3410 Out << "))"; in printFunctionSummary()
3412 Out << "))"; in printFunctionSummary()
3414 Out << ")"; in printFunctionSummary()
3418 Out << ", callsites: ("; in printFunctionSummary()
3421 Out << SNFS; in printFunctionSummary()
3423 Out << "(callee: ^" << Machine.getGUIDSlot(CI.Callee.getGUID()); in printFunctionSummary()
3425 Out << "(callee: null"; in printFunctionSummary()
3426 Out << ", clones: ("; in printFunctionSummary()
3429 Out << VFS; in printFunctionSummary()
3430 Out << V; in printFunctionSummary()
3432 Out << "), stackIds: ("; in printFunctionSummary()
3435 Out << SIDFS; in printFunctionSummary()
3436 Out << TheIndex->getStackIdAtIndex(Id); in printFunctionSummary()
3438 Out << "))"; in printFunctionSummary()
3440 Out << ")"; in printFunctionSummary()
3444 Out << "[" << Range.getSignedMin() << ", " << Range.getSignedMax() << "]"; in printFunctionSummary()
3448 Out << ", params: ("; in printFunctionSummary()
3451 Out << IFS; in printFunctionSummary()
3452 Out << "(param: " << PS.ParamNo; in printFunctionSummary()
3453 Out << ", offset: "; in printFunctionSummary()
3456 Out << ", calls: ("; in printFunctionSummary()
3459 Out << IFS; in printFunctionSummary()
3460 Out << "(callee: ^" << Machine.getGUIDSlot(Call.Callee.getGUID()); in printFunctionSummary()
3461 Out << ", param: " << Call.ParamNo; in printFunctionSummary()
3462 Out << ", offset: "; in printFunctionSummary()
3464 Out << ")"; in printFunctionSummary()
3466 Out << ")"; in printFunctionSummary()
3468 Out << ")"; in printFunctionSummary()
3470 Out << ")"; in printFunctionSummary()
3476 Out << ", typeIdInfo: ("; in printTypeIdInfo()
3479 Out << TIDFS; in printTypeIdInfo()
3480 Out << "typeTests: ("; in printTypeIdInfo()
3485 Out << FS; in printTypeIdInfo()
3486 Out << GUID; in printTypeIdInfo()
3491 Out << FS; in printTypeIdInfo()
3494 Out << "^" << Slot; in printTypeIdInfo()
3497 Out << ")"; in printTypeIdInfo()
3500 Out << TIDFS; in printTypeIdInfo()
3504 Out << TIDFS; in printTypeIdInfo()
3508 Out << TIDFS; in printTypeIdInfo()
3513 Out << TIDFS; in printTypeIdInfo()
3517 Out << ")"; in printTypeIdInfo()
3523 Out << "vFuncId: ("; in printVFuncId()
3524 Out << "guid: " << VFId.GUID; in printVFuncId()
3525 Out << ", offset: " << VFId.Offset; in printVFuncId()
3526 Out << ")"; in printVFuncId()
3532 Out << FS; in printVFuncId()
3533 Out << "vFuncId: ("; in printVFuncId()
3536 Out << "^" << Slot; in printVFuncId()
3537 Out << ", offset: " << VFId.Offset; in printVFuncId()
3538 Out << ")"; in printVFuncId()
3544 Out << Tag << ": ("; in printNonConstVCalls()
3547 Out << FS; in printNonConstVCalls()
3550 Out << ")"; in printNonConstVCalls()
3556 Out << Tag << ": ("; in printConstVCalls()
3559 Out << FS; in printConstVCalls()
3560 Out << "("; in printConstVCalls()
3563 Out << ", "; in printConstVCalls()
3566 Out << ")"; in printConstVCalls()
3568 Out << ")"; in printConstVCalls()
3574 Out << getSummaryKindName(Summary.getSummaryKind()) << ": "; in printSummary()
3575 Out << "(module: ^" << Machine.getModulePathSlot(Summary.modulePath()) in printSummary()
3577 Out << "linkage: " << getLinkageName(LT); in printSummary()
3578 Out << ", visibility: " in printSummary()
3580 Out << ", notEligibleToImport: " << GVFlags.NotEligibleToImport; in printSummary()
3581 Out << ", live: " << GVFlags.Live; in printSummary()
3582 Out << ", dsoLocal: " << GVFlags.DSOLocal; in printSummary()
3583 Out << ", canAutoHide: " << GVFlags.CanAutoHide; in printSummary()
3584 Out << ", importType: " in printSummary()
3586 Out << ")"; in printSummary()
3597 Out << ", refs: ("; in printSummary()
3600 Out << FS; in printSummary()
3602 Out << "readonly "; in printSummary()
3604 Out << "writeonly "; in printSummary()
3605 Out << "^" << Machine.getGUIDSlot(Ref.getGUID()); in printSummary()
3607 Out << ")"; in printSummary()
3610 Out << ")"; in printSummary()
3614 Out << "^" << Slot << " = gv: ("; in printSummaryInfo()
3616 Out << "name: \"" << VI.name() << "\""; in printSummaryInfo()
3618 Out << "guid: " << VI.getGUID(); in printSummaryInfo()
3620 Out << ", summaries: ("; in printSummaryInfo()
3623 Out << FS; in printSummaryInfo()
3626 Out << ")"; in printSummaryInfo()
3628 Out << ")"; in printSummaryInfo()
3630 Out << " ; guid = " << VI.getGUID(); in printSummaryInfo()
3631 Out << "\n"; in printSummaryInfo()
3635 formatted_raw_ostream &Out) { in printMetadataIdentifier() argument
3637 Out << "<empty name> "; in printMetadataIdentifier()
3642 Out << FirstC; in printMetadataIdentifier()
3644 Out << '\\' << hexdigit(FirstC >> 4) << hexdigit(FirstC & 0x0F); in printMetadataIdentifier()
3648 Out << C; in printMetadataIdentifier()
3650 Out << '\\' << hexdigit(C >> 4) << hexdigit(C & 0x0F); in printMetadataIdentifier()
3656 Out << '!'; in printNamedMDNode()
3657 printMetadataIdentifier(NMD->getName(), Out); in printNamedMDNode()
3658 Out << " = !{"; in printNamedMDNode()
3661 Out << ", "; in printNamedMDNode()
3667 writeDIExpression(Out, Expr, AsmWriterContext::getEmpty()); in printNamedMDNode()
3673 Out << "<badref>"; in printNamedMDNode()
3675 Out << '!' << Slot; in printNamedMDNode()
3677 Out << "}\n"; in printNamedMDNode()
3681 formatted_raw_ostream &Out) { in PrintVisibility() argument
3684 case GlobalValue::HiddenVisibility: Out << "hidden "; break; in PrintVisibility()
3685 case GlobalValue::ProtectedVisibility: Out << "protected "; break; in PrintVisibility()
3690 formatted_raw_ostream &Out) { in PrintDSOLocation() argument
3692 Out << "dso_local "; in PrintDSOLocation()
3696 formatted_raw_ostream &Out) { in PrintDLLStorageClass() argument
3699 case GlobalValue::DLLImportStorageClass: Out << "dllimport "; break; in PrintDLLStorageClass()
3700 case GlobalValue::DLLExportStorageClass: Out << "dllexport "; break; in PrintDLLStorageClass()
3705 formatted_raw_ostream &Out) { in PrintThreadLocalModel() argument
3710 Out << "thread_local "; in PrintThreadLocalModel()
3713 Out << "thread_local(localdynamic) "; in PrintThreadLocalModel()
3716 Out << "thread_local(initialexec) "; in PrintThreadLocalModel()
3719 Out << "thread_local(localexec) "; in PrintThreadLocalModel()
3736 static void maybePrintComdat(formatted_raw_ostream &Out, in maybePrintComdat() argument
3743 Out << ','; in maybePrintComdat()
3744 Out << " comdat"; in maybePrintComdat()
3749 Out << '('; in maybePrintComdat()
3750 PrintLLVMName(Out, C->getName(), ComdatPrefix); in maybePrintComdat()
3751 Out << ')'; in maybePrintComdat()
3756 Out << "; Materializable\n"; in printGlobal()
3759 WriteAsOperandInternal(Out, GV, WriterCtx); in printGlobal()
3760 Out << " = "; in printGlobal()
3763 Out << "external "; in printGlobal()
3765 Out << getLinkageNameWithSpace(GV->getLinkage()); in printGlobal()
3766 PrintDSOLocation(*GV, Out); in printGlobal()
3767 PrintVisibility(GV->getVisibility(), Out); in printGlobal()
3768 PrintDLLStorageClass(GV->getDLLStorageClass(), Out); in printGlobal()
3769 PrintThreadLocalModel(GV->getThreadLocalMode(), Out); in printGlobal()
3772 Out << UA << ' '; in printGlobal()
3775 Out << "addrspace(" << AddressSpace << ") "; in printGlobal()
3776 if (GV->isExternallyInitialized()) Out << "externally_initialized "; in printGlobal()
3777 Out << (GV->isConstant() ? "constant " : "global "); in printGlobal()
3778 TypePrinter.print(GV->getValueType(), Out); in printGlobal()
3781 Out << ' '; in printGlobal()
3786 Out << ", section \""; in printGlobal()
3787 printEscapedString(GV->getSection(), Out); in printGlobal()
3788 Out << '"'; in printGlobal()
3791 Out << ", partition \""; in printGlobal()
3792 printEscapedString(GV->getPartition(), Out); in printGlobal()
3793 Out << '"'; in printGlobal()
3796 Out << ", code_model \""; in printGlobal()
3799 Out << "tiny"; in printGlobal()
3802 Out << "small"; in printGlobal()
3805 Out << "kernel"; in printGlobal()
3808 Out << "medium"; in printGlobal()
3811 Out << "large"; in printGlobal()
3814 Out << '"'; in printGlobal()
3821 Out << ", no_sanitize_address"; in printGlobal()
3823 Out << ", no_sanitize_hwaddress"; in printGlobal()
3825 Out << ", sanitize_memtag"; in printGlobal()
3827 Out << ", sanitize_address_dyninit"; in printGlobal()
3830 maybePrintComdat(Out, *GV); in printGlobal()
3832 Out << ", align " << A->value(); in printGlobal()
3840 Out << " #" << Machine.getAttributeGroupSlot(Attrs); in printGlobal()
3847 Out << "; Materializable\n"; in printAlias()
3850 WriteAsOperandInternal(Out, GA, WriterCtx); in printAlias()
3851 Out << " = "; in printAlias()
3853 Out << getLinkageNameWithSpace(GA->getLinkage()); in printAlias()
3854 PrintDSOLocation(*GA, Out); in printAlias()
3855 PrintVisibility(GA->getVisibility(), Out); in printAlias()
3856 PrintDLLStorageClass(GA->getDLLStorageClass(), Out); in printAlias()
3857 PrintThreadLocalModel(GA->getThreadLocalMode(), Out); in printAlias()
3860 Out << UA << ' '; in printAlias()
3862 Out << "alias "; in printAlias()
3864 TypePrinter.print(GA->getValueType(), Out); in printAlias()
3865 Out << ", "; in printAlias()
3870 TypePrinter.print(GA->getType(), Out); in printAlias()
3871 Out << " <<NULL ALIASEE>>"; in printAlias()
3875 Out << ", partition \""; in printAlias()
3876 printEscapedString(GA->getPartition(), Out); in printAlias()
3877 Out << '"'; in printAlias()
3881 Out << '\n'; in printAlias()
3886 Out << "; Materializable\n"; in printIFunc()
3889 WriteAsOperandInternal(Out, GI, WriterCtx); in printIFunc()
3890 Out << " = "; in printIFunc()
3892 Out << getLinkageNameWithSpace(GI->getLinkage()); in printIFunc()
3893 PrintDSOLocation(*GI, Out); in printIFunc()
3894 PrintVisibility(GI->getVisibility(), Out); in printIFunc()
3896 Out << "ifunc "; in printIFunc()
3898 TypePrinter.print(GI->getValueType(), Out); in printIFunc()
3899 Out << ", "; in printIFunc()
3904 TypePrinter.print(GI->getType(), Out); in printIFunc()
3905 Out << " <<NULL RESOLVER>>"; in printIFunc()
3909 Out << ", partition \""; in printIFunc()
3910 printEscapedString(GI->getPartition(), Out); in printIFunc()
3911 Out << '"'; in printIFunc()
3915 Out << '\n'; in printIFunc()
3919 C->print(Out); in printComdat()
3926 Out << '\n'; in printTypeIdentities()
3931 Out << '%' << I << " = type "; in printTypeIdentities()
3935 TypePrinter.printStructBody(NumberedTypes[I], Out); in printTypeIdentities()
3936 Out << '\n'; in printTypeIdentities()
3941 PrintLLVMName(Out, NamedType->getName(), LocalPrefix); in printTypeIdentities()
3942 Out << " = type "; in printTypeIdentities()
3946 TypePrinter.printStructBody(NamedType, Out); in printTypeIdentities()
3947 Out << '\n'; in printTypeIdentities()
3953 if (AnnotationWriter) AnnotationWriter->emitFunctionAnnot(F, Out); in printFunction()
3956 Out << "; Materializable\n"; in printFunction()
3971 Out << "; Function Attrs: " << AttrStr << '\n'; in printFunction()
3977 Out << "declare"; in printFunction()
3981 Out << ' '; in printFunction()
3983 Out << "define "; in printFunction()
3985 Out << getLinkageNameWithSpace(F->getLinkage()); in printFunction()
3986 PrintDSOLocation(*F, Out); in printFunction()
3987 PrintVisibility(F->getVisibility(), Out); in printFunction()
3988 PrintDLLStorageClass(F->getDLLStorageClass(), Out); in printFunction()
3992 PrintCallingConv(F->getCallingConv(), Out); in printFunction()
3993 Out << " "; in printFunction()
3998 Out << Attrs.getAsString(AttributeList::ReturnIndex) << ' '; in printFunction()
3999 TypePrinter.print(F->getReturnType(), Out); in printFunction()
4001 Out << ' '; in printFunction()
4002 WriteAsOperandInternal(Out, F, WriterCtx); in printFunction()
4003 Out << '('; in printFunction()
4011 Out << ", "; in printFunction()
4013 TypePrinter.print(FT->getParamType(I), Out); in printFunction()
4017 Out << ' '; in printFunction()
4026 Out << ", "; in printFunction()
4033 if (FT->getNumParams()) Out << ", "; in printFunction()
4034 Out << "..."; // Output varargs portion of signature! in printFunction()
4036 Out << ')'; in printFunction()
4039 Out << ' ' << UA; in printFunction()
4046 Out << " addrspace(" << F->getAddressSpace() << ")"; in printFunction()
4048 Out << " #" << Machine.getAttributeGroupSlot(Attrs.getFnAttrs()); in printFunction()
4050 Out << " section \""; in printFunction()
4051 printEscapedString(F->getSection(), Out); in printFunction()
4052 Out << '"'; in printFunction()
4055 Out << " partition \""; in printFunction()
4056 printEscapedString(F->getPartition(), Out); in printFunction()
4057 Out << '"'; in printFunction()
4059 maybePrintComdat(Out, *F); in printFunction()
4061 Out << " align " << A->value(); in printFunction()
4063 Out << " gc \"" << F->getGC() << '"'; in printFunction()
4065 Out << " prefix "; in printFunction()
4069 Out << " prologue "; in printFunction()
4073 Out << " personality "; in printFunction()
4078 Out << '\n'; in printFunction()
4084 Out << " {"; in printFunction()
4092 Out << "}\n"; in printFunction()
4102 TypePrinter.print(Arg->getType(), Out); in printArgument()
4106 Out << ' '; in printArgument()
4112 Out << ' '; in printArgument()
4113 PrintLLVMName(Out, Arg); in printArgument()
4117 Out << " %" << Slot; in printArgument()
4125 Out << "\n"; in printBasicBlock()
4126 PrintLLVMName(Out, BB->getName(), LabelPrefix); in printBasicBlock()
4127 Out << ':'; in printBasicBlock()
4129 Out << "\n"; in printBasicBlock()
4132 Out << Slot << ":"; in printBasicBlock()
4134 Out << "<badref>:"; in printBasicBlock()
4139 Out.PadToColumn(50); in printBasicBlock()
4140 Out << ";"; in printBasicBlock()
4144 Out << " No predecessors!"; in printBasicBlock()
4146 Out << " preds = "; in printBasicBlock()
4149 Out << ", "; in printBasicBlock()
4155 Out << "\n"; in printBasicBlock()
4157 if (AnnotationWriter) AnnotationWriter->emitBasicBlockStartAnnot(BB, Out); in printBasicBlock()
4166 if (AnnotationWriter) AnnotationWriter->emitBasicBlockEndAnnot(BB, Out); in printBasicBlock()
4172 Out << '\n'; in printInstructionLine()
4178 Out << " ; ("; in printGCRelocateComment()
4180 Out << ", "; in printGCRelocateComment()
4182 Out << ")"; in printGCRelocateComment()
4192 AnnotationWriter->printInfoComment(V, Out); in printInfoComment()
4197 raw_ostream &Out) { in maybePrintCallAddrSpace() argument
4200 Out << " <cannot get addrspace!>"; in maybePrintCallAddrSpace()
4214 Out << " addrspace(" << CallAddrSpace << ")"; in maybePrintCallAddrSpace()
4219 if (AnnotationWriter) AnnotationWriter->emitInstructionAnnot(&I, Out); in printInstruction()
4222 Out << " "; in printInstruction()
4226 PrintLLVMName(Out, &I); in printInstruction()
4227 Out << " = "; in printInstruction()
4232 Out << "<badref> = "; in printInstruction()
4234 Out << '%' << SlotNum << " = "; in printInstruction()
4239 Out << "musttail "; in printInstruction()
4241 Out << "tail "; in printInstruction()
4243 Out << "notail "; in printInstruction()
4247 Out << I.getOpcodeName(); in printInstruction()
4252 Out << " atomic"; in printInstruction()
4255 Out << " weak"; in printInstruction()
4262 Out << " volatile"; in printInstruction()
4265 WriteOptimizationInfo(Out, &I); in printInstruction()
4269 Out << ' ' << CI->getPredicate(); in printInstruction()
4273 Out << ' ' << AtomicRMWInst::getOperationName(RMWI->getOperation()); in printInstruction()
4281 Out << ' '; in printInstruction()
4283 Out << ", "; in printInstruction()
4285 Out << ", "; in printInstruction()
4291 Out << ' '; in printInstruction()
4293 Out << ", "; in printInstruction()
4295 Out << " ["; in printInstruction()
4297 Out << "\n "; in printInstruction()
4299 Out << ", "; in printInstruction()
4302 Out << "\n ]"; in printInstruction()
4305 Out << ' '; in printInstruction()
4307 Out << ", ["; in printInstruction()
4311 Out << ", "; in printInstruction()
4314 Out << ']'; in printInstruction()
4316 Out << ' '; in printInstruction()
4317 TypePrinter.print(I.getType(), Out); in printInstruction()
4318 Out << ' '; in printInstruction()
4321 if (op) Out << ", "; in printInstruction()
4322 Out << "[ "; in printInstruction()
4323 writeOperand(PN->getIncomingValue(op), false); Out << ", "; in printInstruction()
4324 writeOperand(PN->getIncomingBlock(op), false); Out << " ]"; in printInstruction()
4327 Out << ' '; in printInstruction()
4330 Out << ", " << i; in printInstruction()
4332 Out << ' '; in printInstruction()
4333 writeOperand(I.getOperand(0), true); Out << ", "; in printInstruction()
4336 Out << ", " << i; in printInstruction()
4338 Out << ' '; in printInstruction()
4339 TypePrinter.print(I.getType(), Out); in printInstruction()
4341 Out << '\n'; in printInstruction()
4344 Out << " cleanup"; in printInstruction()
4347 if (i != 0 || LPI->isCleanup()) Out << "\n"; in printInstruction()
4349 Out << " catch "; in printInstruction()
4351 Out << " filter "; in printInstruction()
4356 Out << " within "; in printInstruction()
4358 Out << " ["; in printInstruction()
4362 Out << ", "; in printInstruction()
4366 Out << "] unwind "; in printInstruction()
4370 Out << "to caller"; in printInstruction()
4372 Out << " within "; in printInstruction()
4374 Out << " ["; in printInstruction()
4377 Out << ", "; in printInstruction()
4380 Out << ']'; in printInstruction()
4382 Out << " void"; in printInstruction()
4384 Out << " from "; in printInstruction()
4387 Out << " to "; in printInstruction()
4390 Out << " from "; in printInstruction()
4393 Out << " unwind "; in printInstruction()
4397 Out << "to caller"; in printInstruction()
4401 Out << " "; in printInstruction()
4402 PrintCallingConv(CI->getCallingConv(), Out); in printInstruction()
4411 Out << ' ' << PAL.getAsString(AttributeList::ReturnIndex); in printInstruction()
4414 maybePrintCallAddrSpace(Operand, &I, Out); in printInstruction()
4419 Out << ' '; in printInstruction()
4420 TypePrinter.print(FTy->isVarArg() ? FTy : RetTy, Out); in printInstruction()
4421 Out << ' '; in printInstruction()
4423 Out << '('; in printInstruction()
4426 Out << ", "; in printInstruction()
4436 Out << ", "; in printInstruction()
4437 Out << "..."; in printInstruction()
4440 Out << ')'; in printInstruction()
4442 Out << " #" << Machine.getAttributeGroupSlot(PAL.getFnAttrs()); in printInstruction()
4453 Out << " "; in printInstruction()
4454 PrintCallingConv(II->getCallingConv(), Out); in printInstruction()
4458 Out << ' ' << PAL.getAsString(AttributeList::ReturnIndex); in printInstruction()
4461 maybePrintCallAddrSpace(Operand, &I, Out); in printInstruction()
4467 Out << ' '; in printInstruction()
4468 TypePrinter.print(FTy->isVarArg() ? FTy : RetTy, Out); in printInstruction()
4469 Out << ' '; in printInstruction()
4471 Out << '('; in printInstruction()
4474 Out << ", "; in printInstruction()
4478 Out << ')'; in printInstruction()
4480 Out << " #" << Machine.getAttributeGroupSlot(PAL.getFnAttrs()); in printInstruction()
4484 Out << "\n to "; in printInstruction()
4486 Out << " unwind "; in printInstruction()
4496 Out << " "; in printInstruction()
4497 PrintCallingConv(CBI->getCallingConv(), Out); in printInstruction()
4501 Out << ' ' << PAL.getAsString(AttributeList::ReturnIndex); in printInstruction()
4507 Out << ' '; in printInstruction()
4508 TypePrinter.print(FTy->isVarArg() ? FTy : RetTy, Out); in printInstruction()
4509 Out << ' '; in printInstruction()
4511 Out << '('; in printInstruction()
4514 Out << ", "; in printInstruction()
4518 Out << ')'; in printInstruction()
4520 Out << " #" << Machine.getAttributeGroupSlot(PAL.getFnAttrs()); in printInstruction()
4524 Out << "\n to "; in printInstruction()
4526 Out << " ["; in printInstruction()
4529 Out << ", "; in printInstruction()
4532 Out << ']'; in printInstruction()
4534 Out << ' '; in printInstruction()
4536 Out << "inalloca "; in printInstruction()
4538 Out << "swifterror "; in printInstruction()
4539 TypePrinter.print(AI->getAllocatedType(), Out); in printInstruction()
4547 Out << ", "; in printInstruction()
4551 Out << ", align " << A->value(); in printInstruction()
4556 Out << ", addrspace(" << AddrSpace << ')'; in printInstruction()
4560 Out << ' '; in printInstruction()
4563 Out << " to "; in printInstruction()
4564 TypePrinter.print(I.getType(), Out); in printInstruction()
4567 Out << ' '; in printInstruction()
4570 Out << ", "; in printInstruction()
4571 TypePrinter.print(I.getType(), Out); in printInstruction()
4574 Out << ' '; in printInstruction()
4575 TypePrinter.print(GEP->getSourceElementType(), Out); in printInstruction()
4576 Out << ','; in printInstruction()
4578 Out << ' '; in printInstruction()
4579 TypePrinter.print(LI->getType(), Out); in printInstruction()
4580 Out << ','; in printInstruction()
4608 Out << ' '; in printInstruction()
4609 TypePrinter.print(TheType, Out); in printInstruction()
4612 Out << ' '; in printInstruction()
4614 if (i) Out << ", "; in printInstruction()
4624 Out << ", align " << A->value(); in printInstruction()
4629 Out << ", align " << A->value(); in printInstruction()
4633 Out << ", align " << CXI->getAlign().value(); in printInstruction()
4637 Out << ", align " << RMWI->getAlign().value(); in printInstruction()
4641 PrintShuffleMask(Out, SVI->getType(), SVI->getShuffleMask()); in printInstruction()
4658 Out << "\n"; in printDbgMarker()
4661 Out << " DbgMarker -> { "; in printDbgMarker()
4663 Out << " }"; in printDbgMarker()
4678 Out << "#dbg_"; in printDbgVariableRecord()
4681 Out << "value"; in printDbgVariableRecord()
4684 Out << "declare"; in printDbgVariableRecord()
4687 Out << "assign"; in printDbgVariableRecord()
4693 Out << "("; in printDbgVariableRecord()
4694 WriteAsOperandInternal(Out, DVR.getRawLocation(), WriterCtx, true); in printDbgVariableRecord()
4695 Out << ", "; in printDbgVariableRecord()
4696 WriteAsOperandInternal(Out, DVR.getRawVariable(), WriterCtx, true); in printDbgVariableRecord()
4697 Out << ", "; in printDbgVariableRecord()
4698 WriteAsOperandInternal(Out, DVR.getRawExpression(), WriterCtx, true); in printDbgVariableRecord()
4699 Out << ", "; in printDbgVariableRecord()
4701 WriteAsOperandInternal(Out, DVR.getRawAssignID(), WriterCtx, true); in printDbgVariableRecord()
4702 Out << ", "; in printDbgVariableRecord()
4703 WriteAsOperandInternal(Out, DVR.getRawAddress(), WriterCtx, true); in printDbgVariableRecord()
4704 Out << ", "; in printDbgVariableRecord()
4705 WriteAsOperandInternal(Out, DVR.getRawAddressExpression(), WriterCtx, true); in printDbgVariableRecord()
4706 Out << ", "; in printDbgVariableRecord()
4708 WriteAsOperandInternal(Out, DVR.getDebugLoc().getAsMDNode(), WriterCtx, true); in printDbgVariableRecord()
4709 Out << ")"; in printDbgVariableRecord()
4716 Out << " "; in printDbgRecordLine()
4718 Out << '\n'; in printDbgRecordLine()
4723 Out << "#dbg_label("; in printDbgLabelRecord()
4724 WriteAsOperandInternal(Out, Label.getRawLabel(), WriterCtx, true); in printDbgLabelRecord()
4725 Out << ", "; in printDbgLabelRecord()
4726 WriteAsOperandInternal(Out, Label.getDebugLoc(), WriterCtx, true); in printDbgLabelRecord()
4727 Out << ")"; in printDbgLabelRecord()
4742 Out << Separator; in printMetadataAttachments()
4744 Out << "!"; in printMetadataAttachments()
4745 printMetadataIdentifier(MDNames[Kind], Out); in printMetadataAttachments()
4747 Out << "!<unknown kind #" << Kind << ">"; in printMetadataAttachments()
4748 Out << ' '; in printMetadataAttachments()
4749 WriteAsOperandInternal(Out, I.second, WriterCtx); in printMetadataAttachments()
4754 Out << '!' << Slot << " = "; in writeMDNode()
4756 Out << "\n"; in writeMDNode()
4772 WriteMDNodeBodyInternal(Out, Node, WriterCtx); in printMDNodeBody()
4777 Out << Attr.getAsString(InAttrGroup); in writeAttribute()
4781 Out << Attribute::getNameFromAttrKind(Attr.getKindAsEnum()); in writeAttribute()
4783 Out << '('; in writeAttribute()
4784 TypePrinter.print(Ty, Out); in writeAttribute()
4785 Out << ')'; in writeAttribute()
4794 Out << ' '; in writeAttributeSet()
4808 Out << "attributes #" << I.second << " = { " in writeAllAttributeGroups()
4816 Out << " "; in printUseListOrder()
4818 Out << "uselistorder"; in printUseListOrder()
4820 Out << "_bb "; in printUseListOrder()
4822 Out << ", "; in printUseListOrder()
4825 Out << " "; in printUseListOrder()
4828 Out << ", { "; in printUseListOrder()
4831 Out << Shuffle[0]; in printUseListOrder()
4833 Out << ", " << Shuffle[I]; in printUseListOrder()
4834 Out << " }\n"; in printUseListOrder()
4842 Out << "\n; uselistorder directives\n"; in printUseLists()