Lines Matching full:ms

105     MS = TheTarget->createAsmStreamer(  in init()
112 MS = TheTarget->createMCObjectStreamer( in init()
120 if (!MS) in init()
133 Asm.reset(TheTarget->createAsmPrinter(*TM, std::unique_ptr<MCStreamer>(MS))); in init()
153 void DwarfStreamer::finish() { MS->finish(); } in finish()
156 MS->switchSection(MOFI->getDwarfInfoSection()); in switchToDebugInfoSection()
214 MS->switchSection(MOFI->getDwarfAbbrevSection()); in emitAbbrevs()
221 MS->switchSection(MOFI->getDwarfInfoSection()); in emitDIE()
233 MS->switchSection(Section); in emitSectionContents()
235 MS->emitBytes(SecData); in emitSectionContents()
324 MS->emitInt16(5); in emitStringOffsets()
328 MS->emitInt16(0); in emitStringOffsets()
417 MS->switchSection(SwiftASTSection); in emitSwiftAST()
418 MS->emitBytes(Buffer); in emitSwiftAST()
429 MS->switchSection(ReflectionSection); in emitSwiftReflectionSection()
430 MS->emitBytes(Buffer); in emitSwiftReflectionSection()
438 MS->switchSection(MC->getObjectFileInfo()->getDwarfARangesSection()); in emitDwarfDebugArangesTable()
465 MS->emitIntValue(Range.start(), AddressSize); in emitDwarfDebugArangesTable()
466 MS->emitIntValue(Range.end() - Range.start(), AddressSize); in emitDwarfDebugArangesTable()
481 MS->switchSection(MC->getObjectFileInfo()->getDwarfRangesSection()); in emitDwarfDebugRangesTableFragment()
490 MS->emitIntValue(Range.start() - BaseAddress, AddressSize); in emitDwarfDebugRangesTableFragment()
491 MS->emitIntValue(Range.end() - BaseAddress, AddressSize); in emitDwarfDebugRangesTableFragment()
498 MS->emitIntValue(0, AddressSize); in emitDwarfDebugRangesTableFragment()
499 MS->emitIntValue(0, AddressSize); in emitDwarfDebugRangesTableFragment()
511 MS->switchSection(MC->getObjectFileInfo()->getDwarfRnglistsSection()); in emitDwarfDebugRangeListHeader()
523 MS->emitInt16(5); in emitDwarfDebugRangeListHeader()
527 MS->emitInt8(AddressSize); in emitDwarfDebugRangeListHeader()
531 MS->emitInt8(0); in emitDwarfDebugRangeListHeader()
535 MS->emitInt32(0); in emitDwarfDebugRangeListHeader()
558 MS->switchSection(MC->getObjectFileInfo()->getDwarfRnglistsSection()); in emitDwarfDebugRangeListFooter()
570 MS->switchSection(MC->getObjectFileInfo()->getDwarfRnglistsSection()); in emitDwarfDebugRngListsTableFragment()
579 MS->emitInt8(dwarf::DW_RLE_base_addressx); in emitDwarfDebugRngListsTableFragment()
582 MS->emitULEB128IntValue(AddrPool.getValueIndex(*BaseAddress)); in emitDwarfDebugRngListsTableFragment()
586 MS->emitInt8(dwarf::DW_RLE_offset_pair); in emitDwarfDebugRngListsTableFragment()
591 MS->emitULEB128IntValue(Range.start() - *BaseAddress); in emitDwarfDebugRngListsTableFragment()
594 RngListsSectionSize += MS->emitULEB128IntValue(Range.end() - *BaseAddress); in emitDwarfDebugRngListsTableFragment()
598 MS->emitInt8(dwarf::DW_RLE_end_of_list); in emitDwarfDebugRngListsTableFragment()
608 MS->switchSection(MC->getObjectFileInfo()->getDwarfLoclistsSection()); in emitDwarfDebugLocListHeader()
620 MS->emitInt16(5); in emitDwarfDebugLocListHeader()
624 MS->emitInt8(AddressSize); in emitDwarfDebugLocListHeader()
628 MS->emitInt8(0); in emitDwarfDebugLocListHeader()
632 MS->emitInt32(0); in emitDwarfDebugLocListHeader()
659 MS->switchSection(MC->getObjectFileInfo()->getDwarfLoclistsSection()); in emitDwarfDebugLocListFooter()
673 MS->switchSection(MC->getObjectFileInfo()->getDwarfLocSection()); in emitDwarfDebugLocTableFragment()
684 MS->emitIntValue(LocExpression.Range->LowPC - BaseAddress, AddressSize); in emitDwarfDebugLocTableFragment()
685 MS->emitIntValue(LocExpression.Range->HighPC - BaseAddress, AddressSize); in emitDwarfDebugLocTableFragment()
698 MS->emitIntValue(0, AddressSize); in emitDwarfDebugLocTableFragment()
699 MS->emitIntValue(0, AddressSize); in emitDwarfDebugLocTableFragment()
709 MS->switchSection(MC->getObjectFileInfo()->getDwarfAddrSection()); in emitDwarfDebugAddrsHeader()
750 MS->switchSection(MC->getObjectFileInfo()->getDwarfAddrSection()); in emitDwarfDebugAddrsFooter()
764 MS->switchSection(MC->getObjectFileInfo()->getDwarfLoclistsSection()); in emitDwarfDebugLocListsTableFragment()
776 MS->emitInt8(dwarf::DW_LLE_base_addressx); in emitDwarfDebugLocListsTableFragment()
779 MS->emitULEB128IntValue(AddrPool.getValueIndex(*BaseAddress)); in emitDwarfDebugLocListsTableFragment()
783 MS->emitInt8(dwarf::DW_LLE_offset_pair); in emitDwarfDebugLocListsTableFragment()
788 MS->emitULEB128IntValue(LocExpression.Range->LowPC - *BaseAddress); in emitDwarfDebugLocListsTableFragment()
792 MS->emitULEB128IntValue(LocExpression.Range->HighPC - *BaseAddress); in emitDwarfDebugLocListsTableFragment()
795 MS->emitInt8(dwarf::DW_LLE_default_location); in emitDwarfDebugLocListsTableFragment()
799 LocListsSectionSize += MS->emitULEB128IntValue(LocExpression.Expr.size()); in emitDwarfDebugLocListsTableFragment()
806 MS->emitInt8(dwarf::DW_LLE_end_of_list); in emitDwarfDebugLocListsTableFragment()
814 MS->switchSection(MC->getObjectFileInfo()->getDwarfLineSection()); in emitLineTableForUnit()
821 MS->emitInt32(dwarf::DW_LENGTH_DWARF64); in emitLineTableForUnit()
843 MS->emitInt16(P.getVersion()); in emitLineTablePrologue()
847 MS->emitInt8(P.getAddressSize()); in emitLineTablePrologue()
851 MS->emitInt8(P.SegSelectorSize); in emitLineTablePrologue()
871 MS->emitInt8(0); in emitLineTablePrologueV2IncludeAndFileTable()
881 LineSectionSize += MS->emitULEB128IntValue(File.DirIdx); in emitLineTablePrologueV2IncludeAndFileTable()
884 LineSectionSize += MS->emitULEB128IntValue(File.ModTime); in emitLineTablePrologueV2IncludeAndFileTable()
887 LineSectionSize += MS->emitULEB128IntValue(File.Length); in emitLineTablePrologueV2IncludeAndFileTable()
890 MS->emitInt8(0); in emitLineTablePrologueV2IncludeAndFileTable()
899 MS->emitInt8(0); in emitLineTablePrologueV5IncludeAndFileTable()
903 MS->emitInt8(1); in emitLineTablePrologueV5IncludeAndFileTable()
907 LineSectionSize += MS->emitULEB128IntValue(dwarf::DW_LNCT_path); in emitLineTablePrologueV5IncludeAndFileTable()
909 MS->emitULEB128IntValue(P.IncludeDirectories[0].getForm()); in emitLineTablePrologueV5IncludeAndFileTable()
913 LineSectionSize += MS->emitULEB128IntValue(P.IncludeDirectories.size()); in emitLineTablePrologueV5IncludeAndFileTable()
923 MS->emitInt8(0); in emitLineTablePrologueV5IncludeAndFileTable()
927 MS->emitInt8(2 + (HasChecksums ? 1 : 0) + (HasInlineSources ? 1 : 0)); in emitLineTablePrologueV5IncludeAndFileTable()
932 LineSectionSize += MS->emitULEB128IntValue(dwarf::DW_LNCT_path); in emitLineTablePrologueV5IncludeAndFileTable()
933 LineSectionSize += MS->emitULEB128IntValue(StrForm); in emitLineTablePrologueV5IncludeAndFileTable()
935 LineSectionSize += MS->emitULEB128IntValue(dwarf::DW_LNCT_directory_index); in emitLineTablePrologueV5IncludeAndFileTable()
936 LineSectionSize += MS->emitULEB128IntValue(dwarf::DW_FORM_data1); in emitLineTablePrologueV5IncludeAndFileTable()
939 LineSectionSize += MS->emitULEB128IntValue(dwarf::DW_LNCT_MD5); in emitLineTablePrologueV5IncludeAndFileTable()
940 LineSectionSize += MS->emitULEB128IntValue(dwarf::DW_FORM_data16); in emitLineTablePrologueV5IncludeAndFileTable()
944 LineSectionSize += MS->emitULEB128IntValue(dwarf::DW_LNCT_LLVM_source); in emitLineTablePrologueV5IncludeAndFileTable()
945 LineSectionSize += MS->emitULEB128IntValue(StrForm); in emitLineTablePrologueV5IncludeAndFileTable()
950 LineSectionSize += MS->emitULEB128IntValue(P.FileNames.size()); in emitLineTablePrologueV5IncludeAndFileTable()
955 MS->emitInt8(File.DirIdx); in emitLineTablePrologueV5IncludeAndFileTable()
958 MS->emitBinaryData( in emitLineTablePrologueV5IncludeAndFileTable()
1004 MS->emitInt8(P.MinInstLength); in emitLineTableProloguePayload()
1008 MS->emitInt8(P.MaxOpsPerInst); in emitLineTableProloguePayload()
1012 MS->emitInt8(P.DefaultIsStmt); in emitLineTableProloguePayload()
1015 MS->emitInt8(P.LineBase); in emitLineTableProloguePayload()
1018 MS->emitInt8(P.LineRange); in emitLineTableProloguePayload()
1021 MS->emitInt8(P.OpcodeBase); in emitLineTableProloguePayload()
1026 MS->emitInt8(Length); in emitLineTableProloguePayload()
1054 MS->emitBytes(EncodingBuffer); in emitLineTableRows()
1056 MS->emitLabel(LineEndSym); in emitLineTableRows()
1074 MS->emitIntValue(dwarf::DW_LNS_extended_op, 1); in emitLineTableRows()
1075 MS->emitULEB128IntValue(AddressByteSize + 1); in emitLineTableRows()
1076 MS->emitIntValue(dwarf::DW_LNE_set_address, 1); in emitLineTableRows()
1077 MS->emitIntValue(Row.Address.Address, AddressByteSize); in emitLineTableRows()
1093 MS->emitIntValue(dwarf::DW_LNS_set_file, 1); in emitLineTableRows()
1094 MS->emitULEB128IntValue(FileNum); in emitLineTableRows()
1099 MS->emitIntValue(dwarf::DW_LNS_set_column, 1); in emitLineTableRows()
1100 MS->emitULEB128IntValue(Column); in emitLineTableRows()
1104 MS->getContext().getDwarfVersion() >= 4) { in emitLineTableRows()
1107 MS->emitIntValue(dwarf::DW_LNS_extended_op, 1); in emitLineTableRows()
1108 MS->emitULEB128IntValue(Size + 1); in emitLineTableRows()
1109 MS->emitIntValue(dwarf::DW_LNE_set_discriminator, 1); in emitLineTableRows()
1110 MS->emitULEB128IntValue(Discriminator); in emitLineTableRows()
1118 MS->emitIntValue(dwarf::DW_LNS_set_isa, 1); in emitLineTableRows()
1119 MS->emitULEB128IntValue(Isa); in emitLineTableRows()
1124 MS->emitIntValue(dwarf::DW_LNS_negate_stmt, 1); in emitLineTableRows()
1128 MS->emitIntValue(dwarf::DW_LNS_set_basic_block, 1); in emitLineTableRows()
1133 MS->emitIntValue(dwarf::DW_LNS_set_prologue_end, 1); in emitLineTableRows()
1138 MS->emitIntValue(dwarf::DW_LNS_set_epilogue_begin, 1); in emitLineTableRows()
1146 MS->emitBytes(EncodingBuffer); in emitLineTableRows()
1154 MS->emitIntValue(dwarf::DW_LNS_advance_line, 1); in emitLineTableRows()
1155 MS->emitSLEB128IntValue(LineDelta); in emitLineTableRows()
1159 MS->emitIntValue(dwarf::DW_LNS_advance_pc, 1); in emitLineTableRows()
1160 MS->emitULEB128IntValue(AddressDelta); in emitLineTableRows()
1165 MS->emitBytes(EncodingBuffer); in emitLineTableRows()
1177 MS->emitBytes(EncodingBuffer); in emitLineTableRows()
1182 MS->emitLabel(LineEndSym); in emitLineTableRows()
1188 MS->emitIntValue(Offset, Size); in emitIntOffset()
1256 MS->switchSection(MC->getObjectFileInfo()->getDwarfFrameSection()); in emitCIE()
1258 MS->emitBytes(CIEBytes); in emitCIE()
1267 MS->switchSection(MC->getObjectFileInfo()->getDwarfFrameSection()); in emitFDE()
1269 MS->emitIntValue(FDEBytes.size() + 4 + AddrSize, 4); in emitFDE()
1270 MS->emitIntValue(CIEOffset, 4); in emitFDE()
1271 MS->emitIntValue(Address, AddrSize); in emitFDE()
1272 MS->emitBytes(FDEBytes); in emitFDE()
1283 MS->switchSection(MC->getObjectFileInfo()->getDwarfMacinfoSection()); in emitMacroTables()
1289 MS->switchSection(MC->getObjectFileInfo()->getDwarfMacroSection()); in emitMacroTables()
1332 MS->emitIntValue(List.Header.Version, sizeof(List.Header.Version)); in emitMacroTableImpl()
1362 MS->emitIntValue(Flags, sizeof(Flags)); in emitMacroTableImpl()
1367 MS->emitIntValue(*StmtListOffset, List.Header.getOffsetByteSize()); in emitMacroTableImpl()
1375 OutOffset += MS->emitULEB128IntValue(MacroEntry.Type); in emitMacroTableImpl()
1389 MS->emitIntValue(MacroType, 1); in emitMacroTableImpl()
1393 OutOffset += MS->emitULEB128IntValue(MacroEntry.ExtConstant); in emitMacroTableImpl()
1397 MS->emitBytes(String); in emitMacroTableImpl()
1398 MS->emitIntValue(0, 1); in emitMacroTableImpl()
1412 MS->emitIntValue(MacroType, 1); in emitMacroTableImpl()
1416 OutOffset += MS->emitULEB128IntValue(MacroEntry.Line); in emitMacroTableImpl()
1420 MS->emitBytes(String); in emitMacroTableImpl()
1421 MS->emitIntValue(0, 1); in emitMacroTableImpl()
1455 MS->emitIntValue(MacroType, 1); in emitMacroTableImpl()
1459 OutOffset += MS->emitULEB128IntValue(MacroEntry.Line); in emitMacroTableImpl()
1464 MS->emitIntValue(EntryRef.getOffset(), List.Header.getOffsetByteSize()); in emitMacroTableImpl()
1470 MS->emitIntValue(MacroType, 1); in emitMacroTableImpl()
1473 OutOffset += MS->emitULEB128IntValue(MacroEntry.Line); in emitMacroTableImpl()
1475 OutOffset += MS->emitULEB128IntValue(MacroEntry.File); in emitMacroTableImpl()
1479 MS->emitIntValue(MacroType, 1); in emitMacroTableImpl()