Lines Matching refs:OS
39 formatted_raw_ostream &OS; member in __anond66482500111::MCAsmStreamer
69 : MCStreamer(Context), OS(os), MAI(Context.getAsmInfo()), in MCAsmStreamer()
81 OS << '\n'; in EmitEOL()
279 OS << '\n'; in EmitCommentsAndEOL()
290 OS.PadToColumn(MAI.getCommentColumn()); in EmitCommentsAndEOL()
292 OS << MAI.getCommentString() << ' ' << Comments.substr(0, Position) << '\n'; in EmitCommentsAndEOL()
309 Section->PrintSwitchToSection(MAI, OS); in ChangeSection()
331 OS << *Symbol << MAI.getLabelSuffix(); in EmitLabel()
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()
350 OS << "\t.thumb_func"; in EmitThumbFunc()
353 OS << '\t' << *Func; in EmitThumbFunc()
358 OS << *Symbol << " = " << *Value; in EmitAssignment()
366 OS << ".weakref " << *Alias << ", " << *Symbol; in EmitWeakReference()
398 OS << "\t.type\t" << *Symbol << ',' in EmitSymbolAttribute()
402 case MCSA_ELF_TypeFunction: OS << "function"; break; in EmitSymbolAttribute()
403 case MCSA_ELF_TypeIndFunction: OS << "gnu_indirect_function"; break; in EmitSymbolAttribute()
404 case MCSA_ELF_TypeObject: OS << "object"; break; in EmitSymbolAttribute()
405 case MCSA_ELF_TypeTLS: OS << "tls_object"; break; in EmitSymbolAttribute()
406 case MCSA_ELF_TypeCommon: OS << "common"; break; in EmitSymbolAttribute()
407 case MCSA_ELF_TypeNoType: OS << "no_type"; break; in EmitSymbolAttribute()
408 case MCSA_ELF_TypeGnuUniqueObject: OS << "gnu_unique_object"; break; in EmitSymbolAttribute()
413 OS << MAI.getGlobalDirective(); in EmitSymbolAttribute()
416 case MCSA_Hidden: OS << "\t.hidden\t"; break; in EmitSymbolAttribute()
417 case MCSA_IndirectSymbol: OS << "\t.indirect_symbol\t"; break; in EmitSymbolAttribute()
418 case MCSA_Internal: OS << "\t.internal\t"; break; in EmitSymbolAttribute()
419 case MCSA_LazyReference: OS << "\t.lazy_reference\t"; break; in EmitSymbolAttribute()
420 case MCSA_Local: OS << "\t.local\t"; break; in EmitSymbolAttribute()
421 case MCSA_NoDeadStrip: OS << "\t.no_dead_strip\t"; break; in EmitSymbolAttribute()
422 case MCSA_SymbolResolver: OS << "\t.symbol_resolver\t"; break; in EmitSymbolAttribute()
424 OS << "\t.private_extern\t"; in EmitSymbolAttribute()
427 case MCSA_Protected: OS << "\t.protected\t"; break; in EmitSymbolAttribute()
428 case MCSA_Reference: OS << "\t.reference\t"; break; in EmitSymbolAttribute()
429 case MCSA_Weak: OS << "\t.weak\t"; break; in EmitSymbolAttribute()
431 OS << "\t.weak_definition\t"; in EmitSymbolAttribute()
435 case MCSA_WeakReference: OS << MAI.getWeakRefDirective(); break; in EmitSymbolAttribute()
436 case MCSA_WeakDefAutoPrivate: OS << "\t.weak_def_can_be_hidden\t"; break; in EmitSymbolAttribute()
439 OS << *Symbol; in EmitSymbolAttribute()
444 OS << ".desc" << ' ' << *Symbol << ',' << DescValue; in EmitSymbolDesc()
449 OS << "\t.def\t " << *Symbol << ';'; in BeginCOFFSymbolDef()
454 OS << "\t.scl\t" << StorageClass << ';'; in EmitCOFFSymbolStorageClass()
459 OS << "\t.type\t" << Type << ';'; in EmitCOFFSymbolType()
464 OS << "\t.endef"; in EndCOFFSymbolDef()
470 OS << "\t.size\t" << *Symbol << ", " << *Value << '\n'; in EmitELFSize()
475 OS << "\t.comm\t" << *Symbol << ',' << Size; in EmitCommonSymbol()
478 OS << ',' << ByteAlignment; in EmitCommonSymbol()
480 OS << ',' << Log2_32(ByteAlignment); in EmitCommonSymbol()
493 OS << "\t.lcomm\t" << *Symbol << ',' << Size; in EmitLocalCommonSymbol()
497 OS << ',' << ByteAlign; in EmitLocalCommonSymbol()
505 OS << ".zerofill "; in EmitZerofill()
509 OS << MOSection->getSegmentName() << "," << MOSection->getSectionName(); in EmitZerofill()
512 OS << ',' << *Symbol << ',' << Size; in EmitZerofill()
514 OS << ',' << Log2_32(ByteAlignment); in EmitZerofill()
527 OS << ".tbss " << *Symbol << ", " << Size; in EmitTBSSSymbol()
531 if (ByteAlignment > 1) OS << ", " << Log2_32(ByteAlignment); in EmitTBSSSymbol()
538 static void PrintQuotedString(StringRef Data, raw_ostream &OS) { in PrintQuotedString() argument
539 OS << '"'; in PrintQuotedString()
544 OS << '\\' << (char)C; in PrintQuotedString()
549 OS << (char)C; in PrintQuotedString()
554 case '\b': OS << "\\b"; break; in PrintQuotedString()
555 case '\f': OS << "\\f"; break; in PrintQuotedString()
556 case '\n': OS << "\\n"; break; in PrintQuotedString()
557 case '\r': OS << "\\r"; break; in PrintQuotedString()
558 case '\t': OS << "\\t"; break; in PrintQuotedString()
560 OS << '\\'; in PrintQuotedString()
561 OS << toOctal(C >> 6); in PrintQuotedString()
562 OS << toOctal(C >> 3); in PrintQuotedString()
563 OS << toOctal(C >> 0); in PrintQuotedString()
568 OS << '"'; in PrintQuotedString()
577 OS << MAI.getData8bitsDirective(AddrSpace); in EmitBytes()
578 OS << (unsigned)(unsigned char)Data[0]; in EmitBytes()
586 OS << MAI.getAscizDirective(); in EmitBytes()
589 OS << MAI.getAsciiDirective(); in EmitBytes()
592 OS << ' '; in EmitBytes()
593 PrintQuotedString(Data, OS); in EmitBytes()
629 OS << Directive << *Value; in EmitValueImpl()
640 OS << ".uleb128 " << *Value; in EmitULEB128Value()
651 OS << ".sleb128 " << *Value; in EmitSLEB128Value()
657 OS << MAI.getGPRel32Directive() << *Value; in EmitGPRel32Value()
670 OS << ZeroDirective << NumBytes; in EmitFill()
672 OS << ',' << (int)FillValue; in EmitFill()
689 case 1: OS << MAI.getAlignDirective(); break; in EmitValueToAlignment()
691 case 2: OS << ".p2alignw "; break; in EmitValueToAlignment()
692 case 4: OS << ".p2alignl "; break; in EmitValueToAlignment()
697 OS << ByteAlignment; in EmitValueToAlignment()
699 OS << Log2_32(ByteAlignment); in EmitValueToAlignment()
702 OS << ", 0x"; in EmitValueToAlignment()
703 OS.write_hex(truncateToSize(Value, ValueSize)); in EmitValueToAlignment()
706 OS << ", " << MaxBytesToEmit; in EmitValueToAlignment()
716 case 1: OS << ".balign"; break; in EmitValueToAlignment()
717 case 2: OS << ".balignw"; break; in EmitValueToAlignment()
718 case 4: OS << ".balignl"; break; in EmitValueToAlignment()
722 OS << ' ' << ByteAlignment; in EmitValueToAlignment()
723 OS << ", " << truncateToSize(Value, ValueSize); in EmitValueToAlignment()
725 OS << ", " << MaxBytesToEmit; in EmitValueToAlignment()
739 OS << ".org " << *Offset << ", " << (unsigned) Value; in EmitValueToOffset()
746 OS << "\t.file\t"; in EmitFileDirective()
747 PrintQuotedString(Filename, OS); in EmitFileDirective()
753 OS << "\t.file\t" << FileNo << ' '; in EmitDwarfFileDirective()
754 PrintQuotedString(Filename, OS); in EmitDwarfFileDirective()
770 OS << "\t.loc\t" << FileNo << " " << Line << " " << Column; in EmitDwarfLocDirective()
772 OS << " basic_block"; in EmitDwarfLocDirective()
774 OS << " prologue_end"; in EmitDwarfLocDirective()
776 OS << " epilogue_begin"; in EmitDwarfLocDirective()
780 OS << " is_stmt "; in EmitDwarfLocDirective()
783 OS << "1"; in EmitDwarfLocDirective()
785 OS << "0"; in EmitDwarfLocDirective()
789 OS << "isa " << Isa; in EmitDwarfLocDirective()
791 OS << "discriminator " << Discriminator; in EmitDwarfLocDirective()
794 OS.PadToColumn(MAI.getCommentColumn()); in EmitDwarfLocDirective()
795 OS << MAI.getCommentString() << ' ' << FileName << ':' in EmitDwarfLocDirective()
807 OS << "\t.cfi_sections "; in EmitCFISections()
809 OS << ".eh_frame"; in EmitCFISections()
811 OS << ", .debug_frame"; in EmitCFISections()
813 OS << ".debug_frame"; in EmitCFISections()
825 OS << "\t.cfi_startproc"; in EmitCFIStartProc()
835 OS << "\t.cfi_endproc"; in EmitCFIEndProc()
843 InstPrinter->printRegName(OS, LLVMRegister); in EmitRegisterName()
845 OS << Register; in EmitRegisterName()
855 OS << "\t.cfi_def_cfa "; in EmitCFIDefCfa()
857 OS << ", " << Offset; in EmitCFIDefCfa()
867 OS << "\t.cfi_def_cfa_offset " << Offset; in EmitCFIDefCfaOffset()
877 OS << "\t.cfi_def_cfa_register "; in EmitCFIDefCfaRegister()
888 OS << "\t.cfi_offset "; in EmitCFIOffset()
890 OS << ", " << Offset; in EmitCFIOffset()
901 OS << "\t.cfi_personality " << Encoding << ", " << *Sym; in EmitCFIPersonality()
911 OS << "\t.cfi_lsda " << Encoding << ", " << *Sym; in EmitCFILsda()
921 OS << "\t.cfi_remember_state"; in EmitCFIRememberState()
931 OS << "\t.cfi_restore_state"; in EmitCFIRestoreState()
941 OS << "\t.cfi_same_value "; in EmitCFISameValue()
952 OS << "\t.cfi_rel_offset "; in EmitCFIRelOffset()
954 OS << ", " << Offset; in EmitCFIRelOffset()
964 OS << "\t.cfi_adjust_cfa_offset " << Adjustment; in EmitCFIAdjustCfaOffset()
971 OS << ".seh_proc " << *Symbol; in EmitWin64EHStartProc()
978 OS << "\t.seh_endproc"; in EmitWin64EHEndProc()
985 OS << "\t.seh_startchained"; in EmitWin64EHStartChained()
992 OS << "\t.seh_endchained"; in EmitWin64EHEndChained()
1000 OS << "\t.seh_handler " << *Sym; in EmitWin64EHHandler()
1002 OS << ", @unwind"; in EmitWin64EHHandler()
1004 OS << ", @except"; in EmitWin64EHHandler()
1034 OS << "\t.seh_handlerdata"; in EmitWin64EHHandlerData()
1041 OS << "\t.seh_pushreg " << Register; in EmitWin64EHPushReg()
1048 OS << "\t.seh_setframe " << Register << ", " << Offset; in EmitWin64EHSetFrame()
1055 OS << "\t.seh_stackalloc " << Size; in EmitWin64EHAllocStack()
1062 OS << "\t.seh_savereg " << Register << ", " << Offset; in EmitWin64EHSaveReg()
1069 OS << "\t.seh_savexmm " << Register << ", " << Offset; in EmitWin64EHSaveXMM()
1076 OS << "\t.seh_pushframe"; in EmitWin64EHPushFrame()
1078 OS << " @code"; in EmitWin64EHPushFrame()
1085 OS << "\t.seh_endprologue"; in EmitWin64EHEndProlog()
1090 raw_ostream &OS = GetCommentOS(); in AddEncodingComment() local
1117 OS << "encoding: ["; in AddEncodingComment()
1120 OS << ','; in AddEncodingComment()
1134 OS << format("0x%02x", uint8_t(Code[i])); in AddEncodingComment()
1138 OS << format("0x%02x", uint8_t(Code[i])) << '\'' in AddEncodingComment()
1141 OS << char('A' + MapEntry - 1); in AddEncodingComment()
1145 OS << "0b"; in AddEncodingComment()
1157 OS << char('A' + MapEntry - 1); in AddEncodingComment()
1159 OS << Bit; in AddEncodingComment()
1163 OS << "]\n"; in AddEncodingComment()
1168 OS << " fixup " << char('A' + i) << " - " << "offset: " << F.getOffset() in AddEncodingComment()
1174 OS << "\t.fnstart"; in EmitFnStart()
1179 OS << "\t.fnend"; in EmitFnEnd()
1184 OS << "\t.cantunwind"; in EmitCantUnwind()
1189 OS << "\t.handlerdata"; in EmitHandlerData()
1194 OS << "\t.personality " << Personality->getName(); in EmitPersonality()
1199 OS << "\t.setfp\t"; in EmitSetFP()
1200 InstPrinter->printRegName(OS, FpReg); in EmitSetFP()
1201 OS << ", "; in EmitSetFP()
1202 InstPrinter->printRegName(OS, SpReg); in EmitSetFP()
1204 OS << ", #" << Offset; in EmitSetFP()
1209 OS << "\t.pad\t#" << Offset; in EmitPad()
1217 OS << "\t.vsave\t{"; in EmitRegSave()
1219 OS << "\t.save\t{"; in EmitRegSave()
1221 InstPrinter->printRegName(OS, RegList[0]); in EmitRegSave()
1224 OS << ", "; in EmitRegSave()
1225 InstPrinter->printRegName(OS, RegList[i]); in EmitRegSave()
1228 OS << "}"; in EmitRegSave()
1247 InstPrinter->printInst(&Inst, OS, ""); in EmitInstruction()
1249 Inst.print(OS, &MAI); in EmitInstruction()
1259 OS << String; in EmitRawText()
1272 formatted_raw_ostream &OS, in createAsmStreamer() argument
1277 return new MCAsmStreamer(Context, OS, isVerboseAsm, useLoc, useCFI, in createAsmStreamer()