Lines Matching refs:OS
42 formatted_raw_ostream &OS; member in __anonad315bfc0111::MCAsmStreamer
65 : MCStreamer(Context), OS(os), MAI(Context.getAsmInfo()), in MCAsmStreamer()
76 OS << '\n'; in EmitEOL()
266 OS << '\n'; in EmitCommentsAndEOL()
277 OS.PadToColumn(MAI->getCommentColumn()); in EmitCommentsAndEOL()
279 OS << MAI->getCommentString() << ' ' << Comments.substr(0, Position) <<'\n'; in EmitCommentsAndEOL()
296 OS << '\t'; in emitRawComment()
297 OS << MAI->getCommentString() << T; in emitRawComment()
304 Section->PrintSwitchToSection(*MAI, OS, Subsection); in ChangeSection()
311 OS << *Symbol << MAI->getLabelSuffix(); in EmitLabel()
324 OS << "\t" << MCLOHDirectiveName() << " " << str << "\t"; in EmitLOHDirective()
329 OS << ", "; in EmitLOHDirective()
331 OS << **It; in EmitLOHDirective()
338 case MCAF_SyntaxUnified: OS << "\t.syntax unified"; break; in EmitAssemblerFlag()
339 case MCAF_SubsectionsViaSymbols: OS << ".subsections_via_symbols"; break; in EmitAssemblerFlag()
340 case MCAF_Code16: OS << '\t'<< MAI->getCode16Directive();break; in EmitAssemblerFlag()
341 case MCAF_Code32: OS << '\t'<< MAI->getCode32Directive();break; in EmitAssemblerFlag()
342 case MCAF_Code64: OS << '\t'<< MAI->getCode64Directive();break; in EmitAssemblerFlag()
349 OS << "\t.linker_option \"" << Options[0] << '"'; in EmitLinkerOptions()
352 OS << ", " << '"' << *it << '"'; in EmitLinkerOptions()
354 OS << "\n"; in EmitLinkerOptions()
361 case MCDR_DataRegion: OS << "\t.data_region"; break; in EmitDataRegion()
362 case MCDR_DataRegionJT8: OS << "\t.data_region jt8"; break; in EmitDataRegion()
363 case MCDR_DataRegionJT16: OS << "\t.data_region jt16"; break; in EmitDataRegion()
364 case MCDR_DataRegionJT32: OS << "\t.data_region jt32"; break; in EmitDataRegion()
365 case MCDR_DataRegionEnd: OS << "\t.end_data_region"; break; in EmitDataRegion()
373 case MCVM_IOSVersionMin: OS << "\t.ios_version_min"; break; in EmitVersionMin()
374 case MCVM_OSXVersionMin: OS << "\t.macosx_version_min"; break; in EmitVersionMin()
376 OS << " " << Major << ", " << Minor; in EmitVersionMin()
378 OS << ", " << Update; in EmitVersionMin()
385 OS << "\t.thumb_func"; in EmitThumbFunc()
388 OS << '\t' << *Func; in EmitThumbFunc()
393 OS << *Symbol << " = " << *Value; in EmitAssignment()
400 OS << ".weakref " << *Alias << ", " << *Symbol; in EmitWeakReference()
417 OS << "\t.type\t" << *Symbol << ',' in EmitSymbolAttribute()
421 case MCSA_ELF_TypeFunction: OS << "function"; break; in EmitSymbolAttribute()
422 case MCSA_ELF_TypeIndFunction: OS << "gnu_indirect_function"; break; in EmitSymbolAttribute()
423 case MCSA_ELF_TypeObject: OS << "object"; break; in EmitSymbolAttribute()
424 case MCSA_ELF_TypeTLS: OS << "tls_object"; break; in EmitSymbolAttribute()
425 case MCSA_ELF_TypeCommon: OS << "common"; break; in EmitSymbolAttribute()
426 case MCSA_ELF_TypeNoType: OS << "no_type"; break; in EmitSymbolAttribute()
427 case MCSA_ELF_TypeGnuUniqueObject: OS << "gnu_unique_object"; break; in EmitSymbolAttribute()
432 OS << MAI->getGlobalDirective(); in EmitSymbolAttribute()
434 case MCSA_Hidden: OS << "\t.hidden\t"; break; in EmitSymbolAttribute()
435 case MCSA_IndirectSymbol: OS << "\t.indirect_symbol\t"; break; in EmitSymbolAttribute()
436 case MCSA_Internal: OS << "\t.internal\t"; break; in EmitSymbolAttribute()
437 case MCSA_LazyReference: OS << "\t.lazy_reference\t"; break; in EmitSymbolAttribute()
438 case MCSA_Local: OS << "\t.local\t"; break; in EmitSymbolAttribute()
439 case MCSA_NoDeadStrip: OS << "\t.no_dead_strip\t"; break; in EmitSymbolAttribute()
440 case MCSA_SymbolResolver: OS << "\t.symbol_resolver\t"; break; in EmitSymbolAttribute()
442 OS << "\t.private_extern\t"; in EmitSymbolAttribute()
444 case MCSA_Protected: OS << "\t.protected\t"; break; in EmitSymbolAttribute()
445 case MCSA_Reference: OS << "\t.reference\t"; break; in EmitSymbolAttribute()
446 case MCSA_Weak: OS << "\t.weak\t"; break; in EmitSymbolAttribute()
448 OS << "\t.weak_definition\t"; in EmitSymbolAttribute()
451 case MCSA_WeakReference: OS << MAI->getWeakRefDirective(); break; in EmitSymbolAttribute()
452 case MCSA_WeakDefAutoPrivate: OS << "\t.weak_def_can_be_hidden\t"; break; in EmitSymbolAttribute()
455 OS << *Symbol; in EmitSymbolAttribute()
462 OS << ".desc" << ' ' << *Symbol << ',' << DescValue; in EmitSymbolDesc()
467 OS << "\t.def\t " << *Symbol << ';'; in BeginCOFFSymbolDef()
472 OS << "\t.scl\t" << StorageClass << ';'; in EmitCOFFSymbolStorageClass()
477 OS << "\t.type\t" << Type << ';'; in EmitCOFFSymbolType()
482 OS << "\t.endef"; in EndCOFFSymbolDef()
487 OS << "\t.secidx\t" << *Symbol; in EmitCOFFSectionIndex()
492 OS << "\t.secrel32\t" << *Symbol; in EmitCOFFSecRel32()
498 OS << "\t.size\t" << *Symbol << ", " << *Value << '\n'; in EmitELFSize()
506 OS << "\t.comm\t" << *Symbol << ',' << Size; in EmitCommonSymbol()
509 OS << ',' << ByteAlignment; in EmitCommonSymbol()
511 OS << ',' << Log2_32(ByteAlignment); in EmitCommonSymbol()
525 OS << "\t.lcomm\t" << *Symbol << ',' << Size; in EmitLocalCommonSymbol()
531 OS << ',' << ByteAlign; in EmitLocalCommonSymbol()
535 OS << ',' << Log2_32(ByteAlign); in EmitLocalCommonSymbol()
548 OS << ".zerofill "; in EmitZerofill()
552 OS << MOSection->getSegmentName() << "," << MOSection->getSectionName(); in EmitZerofill()
555 OS << ',' << *Symbol << ',' << Size; in EmitZerofill()
557 OS << ',' << Log2_32(ByteAlignment); in EmitZerofill()
572 OS << ".tbss " << *Symbol << ", " << Size; in EmitTBSSSymbol()
576 if (ByteAlignment > 1) OS << ", " << Log2_32(ByteAlignment); in EmitTBSSSymbol()
583 static void PrintQuotedString(StringRef Data, raw_ostream &OS) { in PrintQuotedString() argument
584 OS << '"'; in PrintQuotedString()
589 OS << '\\' << (char)C; in PrintQuotedString()
594 OS << (char)C; in PrintQuotedString()
599 case '\b': OS << "\\b"; break; in PrintQuotedString()
600 case '\f': OS << "\\f"; break; in PrintQuotedString()
601 case '\n': OS << "\\n"; break; in PrintQuotedString()
602 case '\r': OS << "\\r"; break; in PrintQuotedString()
603 case '\t': OS << "\\t"; break; in PrintQuotedString()
605 OS << '\\'; in PrintQuotedString()
606 OS << toOctal(C >> 6); in PrintQuotedString()
607 OS << toOctal(C >> 3); in PrintQuotedString()
608 OS << toOctal(C >> 0); in PrintQuotedString()
613 OS << '"'; in PrintQuotedString()
623 OS << MAI->getData8bitsDirective(); in EmitBytes()
624 OS << (unsigned)(unsigned char)Data[0]; in EmitBytes()
632 OS << MAI->getAscizDirective(); in EmitBytes()
635 OS << MAI->getAsciiDirective(); in EmitBytes()
638 PrintQuotedString(Data, OS); in EmitBytes()
693 OS << Directive << *Value; in EmitValueImpl()
704 OS << ".uleb128 " << *Value; in EmitULEB128Value()
715 OS << ".sleb128 " << *Value; in EmitSLEB128Value()
721 OS << MAI->getGPRel64Directive() << *Value; in EmitGPRel64Value()
727 OS << MAI->getGPRel32Directive() << *Value; in EmitGPRel32Value()
738 OS << ZeroDirective << NumBytes; in EmitFill()
740 OS << ',' << (int)FillValue; in EmitFill()
759 OS << "\t.align\t"; in EmitValueToAlignment()
762 OS << ".p2alignw "; in EmitValueToAlignment()
765 OS << ".p2alignl "; in EmitValueToAlignment()
772 OS << ByteAlignment; in EmitValueToAlignment()
774 OS << Log2_32(ByteAlignment); in EmitValueToAlignment()
777 OS << ", 0x"; in EmitValueToAlignment()
778 OS.write_hex(truncateToSize(Value, ValueSize)); in EmitValueToAlignment()
781 OS << ", " << MaxBytesToEmit; in EmitValueToAlignment()
791 case 1: OS << ".balign"; break; in EmitValueToAlignment()
792 case 2: OS << ".balignw"; break; in EmitValueToAlignment()
793 case 4: OS << ".balignl"; break; in EmitValueToAlignment()
797 OS << ' ' << ByteAlignment; in EmitValueToAlignment()
798 OS << ", " << truncateToSize(Value, ValueSize); in EmitValueToAlignment()
800 OS << ", " << MaxBytesToEmit; in EmitValueToAlignment()
814 OS << ".org " << *Offset << ", " << (unsigned) Value; in EmitValueToOffset()
822 OS << "\t.file\t"; in EmitFileDirective()
823 PrintQuotedString(Filename, OS); in EmitFileDirective()
854 OS << "\t.file\t" << FileNo << ' '; in EmitDwarfFileDirective()
856 PrintQuotedString(Directory, OS); in EmitDwarfFileDirective()
857 OS << ' '; in EmitDwarfFileDirective()
859 PrintQuotedString(Filename, OS); in EmitDwarfFileDirective()
872 OS << "\t.loc\t" << FileNo << " " << Line << " " << Column; in EmitDwarfLocDirective()
874 OS << " basic_block"; in EmitDwarfLocDirective()
876 OS << " prologue_end"; in EmitDwarfLocDirective()
878 OS << " epilogue_begin"; in EmitDwarfLocDirective()
882 OS << " is_stmt "; in EmitDwarfLocDirective()
885 OS << "1"; in EmitDwarfLocDirective()
887 OS << "0"; in EmitDwarfLocDirective()
891 OS << " isa " << Isa; in EmitDwarfLocDirective()
893 OS << " discriminator " << Discriminator; in EmitDwarfLocDirective()
896 OS.PadToColumn(MAI->getCommentColumn()); in EmitDwarfLocDirective()
897 OS << MAI->getCommentString() << ' ' << FileName << ':' in EmitDwarfLocDirective()
911 OS << "\t.ident\t"; in EmitIdent()
912 PrintQuotedString(IdentString, OS); in EmitIdent()
918 OS << "\t.cfi_sections "; in EmitCFISections()
920 OS << ".eh_frame"; in EmitCFISections()
922 OS << ", .debug_frame"; in EmitCFISections()
924 OS << ".debug_frame"; in EmitCFISections()
931 OS << "\t.cfi_startproc"; in EmitCFIStartProcImpl()
933 OS << " simple"; in EmitCFIStartProcImpl()
939 OS << "\t.cfi_endproc"; in EmitCFIEndProcImpl()
947 InstPrinter->printRegName(OS, LLVMRegister); in EmitRegisterName()
949 OS << Register; in EmitRegisterName()
955 OS << "\t.cfi_def_cfa "; in EmitCFIDefCfa()
957 OS << ", " << Offset; in EmitCFIDefCfa()
963 OS << "\t.cfi_def_cfa_offset " << Offset; in EmitCFIDefCfaOffset()
969 OS << "\t.cfi_def_cfa_register "; in EmitCFIDefCfaRegister()
976 OS << "\t.cfi_offset "; in EmitCFIOffset()
978 OS << ", " << Offset; in EmitCFIOffset()
985 OS << "\t.cfi_personality " << Encoding << ", " << *Sym; in EmitCFIPersonality()
991 OS << "\t.cfi_lsda " << Encoding << ", " << *Sym; in EmitCFILsda()
997 OS << "\t.cfi_remember_state"; in EmitCFIRememberState()
1003 OS << "\t.cfi_restore_state"; in EmitCFIRestoreState()
1009 OS << "\t.cfi_same_value "; in EmitCFISameValue()
1016 OS << "\t.cfi_rel_offset "; in EmitCFIRelOffset()
1018 OS << ", " << Offset; in EmitCFIRelOffset()
1024 OS << "\t.cfi_adjust_cfa_offset " << Adjustment; in EmitCFIAdjustCfaOffset()
1030 OS << "\t.cfi_signal_frame"; in EmitCFISignalFrame()
1036 OS << "\t.cfi_undefined " << Register; in EmitCFIUndefined()
1042 OS << "\t.cfi_register " << Register1 << ", " << Register2; in EmitCFIRegister()
1048 OS << "\t.cfi_window_save"; in EmitCFIWindowSave()
1055 OS << ".seh_proc " << *Symbol; in EmitWinCFIStartProc()
1062 OS << "\t.seh_endproc"; in EmitWinCFIEndProc()
1069 OS << "\t.seh_startchained"; in EmitWinCFIStartChained()
1076 OS << "\t.seh_endchained"; in EmitWinCFIEndChained()
1084 OS << "\t.seh_handler " << *Sym; in EmitWinEHHandler()
1086 OS << ", @unwind"; in EmitWinEHHandler()
1088 OS << ", @except"; in EmitWinEHHandler()
1118 OS << "\t.seh_handlerdata"; in EmitWinEHHandlerData()
1125 OS << "\t.seh_pushreg " << Register; in EmitWinCFIPushReg()
1132 OS << "\t.seh_setframe " << Register << ", " << Offset; in EmitWinCFISetFrame()
1139 OS << "\t.seh_stackalloc " << Size; in EmitWinCFIAllocStack()
1146 OS << "\t.seh_savereg " << Register << ", " << Offset; in EmitWinCFISaveReg()
1153 OS << "\t.seh_savexmm " << Register << ", " << Offset; in EmitWinCFISaveXMM()
1160 OS << "\t.seh_pushframe"; in EmitWinCFIPushFrame()
1162 OS << " @code"; in EmitWinCFIPushFrame()
1169 OS << "\t.seh_endprologue"; in EmitWinCFIEndProlog()
1175 raw_ostream &OS = GetCommentOS(); in AddEncodingComment() local
1202 OS << "encoding: ["; in AddEncodingComment()
1205 OS << ','; in AddEncodingComment()
1219 OS << format("0x%02x", uint8_t(Code[i])); in AddEncodingComment()
1223 OS << format("0x%02x", uint8_t(Code[i])) << '\'' in AddEncodingComment()
1226 OS << char('A' + MapEntry - 1); in AddEncodingComment()
1230 OS << "0b"; in AddEncodingComment()
1242 OS << char('A' + MapEntry - 1); in AddEncodingComment()
1244 OS << Bit; in AddEncodingComment()
1248 OS << "]\n"; in AddEncodingComment()
1253 OS << " fixup " << char('A' + i) << " - " << "offset: " << F.getOffset() in AddEncodingComment()
1274 InstPrinter->printInst(&Inst, OS, ""); in EmitInstruction()
1276 Inst.print(OS, MAI); in EmitInstruction()
1281 OS << "\t.bundle_align_mode " << AlignPow2; in EmitBundleAlignMode()
1286 OS << "\t.bundle_lock"; in EmitBundleLock()
1288 OS << " align_to_end"; in EmitBundleLock()
1293 OS << "\t.bundle_unlock"; in EmitBundleUnlock()
1303 OS << String; in EmitRawTextImpl()
1326 formatted_raw_ostream &OS, in createAsmStreamer() argument
1330 return new MCAsmStreamer(Context, OS, isVerboseAsm, useDwarfDirectory, IP, CE, in createAsmStreamer()