Lines Matching refs:Streamer

1291   MCObjectStreamer &Streamer;  member in __anon9a8209580111::FrameEmitterImpl
1294 FrameEmitterImpl(bool IsEH, MCObjectStreamer &Streamer) in FrameEmitterImpl() argument
1295 : IsEH(IsEH), Streamer(Streamer) {} in FrameEmitterImpl()
1310 static void emitEncodingByte(MCObjectStreamer &Streamer, unsigned Encoding) { in emitEncodingByte() argument
1311 Streamer.EmitIntValue(Encoding, 1); in emitEncodingByte()
1315 int dataAlignmentFactor = getDataAlignmentFactor(Streamer); in EmitCFIInstruction()
1316 auto *MRI = Streamer.getContext().getRegisterInfo(); in EmitCFIInstruction()
1326 Streamer.EmitIntValue(dwarf::DW_CFA_register, 1); in EmitCFIInstruction()
1327 Streamer.EmitULEB128IntValue(Reg1); in EmitCFIInstruction()
1328 Streamer.EmitULEB128IntValue(Reg2); in EmitCFIInstruction()
1332 Streamer.EmitIntValue(dwarf::DW_CFA_GNU_window_save, 1); in EmitCFIInstruction()
1336 Streamer.EmitIntValue(dwarf::DW_CFA_AARCH64_negate_ra_state, 1); in EmitCFIInstruction()
1341 Streamer.EmitIntValue(dwarf::DW_CFA_undefined, 1); in EmitCFIInstruction()
1342 Streamer.EmitULEB128IntValue(Reg); in EmitCFIInstruction()
1350 Streamer.EmitIntValue(dwarf::DW_CFA_def_cfa_offset, 1); in EmitCFIInstruction()
1357 Streamer.EmitULEB128IntValue(CFAOffset); in EmitCFIInstruction()
1365 Streamer.EmitIntValue(dwarf::DW_CFA_def_cfa, 1); in EmitCFIInstruction()
1366 Streamer.EmitULEB128IntValue(Reg); in EmitCFIInstruction()
1368 Streamer.EmitULEB128IntValue(CFAOffset); in EmitCFIInstruction()
1376 Streamer.EmitIntValue(dwarf::DW_CFA_def_cfa_register, 1); in EmitCFIInstruction()
1377 Streamer.EmitULEB128IntValue(Reg); in EmitCFIInstruction()
1396 Streamer.EmitIntValue(dwarf::DW_CFA_offset_extended_sf, 1); in EmitCFIInstruction()
1397 Streamer.EmitULEB128IntValue(Reg); in EmitCFIInstruction()
1398 Streamer.EmitSLEB128IntValue(Offset); in EmitCFIInstruction()
1400 Streamer.EmitIntValue(dwarf::DW_CFA_offset + Reg, 1); in EmitCFIInstruction()
1401 Streamer.EmitULEB128IntValue(Offset); in EmitCFIInstruction()
1403 Streamer.EmitIntValue(dwarf::DW_CFA_offset_extended, 1); in EmitCFIInstruction()
1404 Streamer.EmitULEB128IntValue(Reg); in EmitCFIInstruction()
1405 Streamer.EmitULEB128IntValue(Offset); in EmitCFIInstruction()
1410 Streamer.EmitIntValue(dwarf::DW_CFA_remember_state, 1); in EmitCFIInstruction()
1413 Streamer.EmitIntValue(dwarf::DW_CFA_restore_state, 1); in EmitCFIInstruction()
1417 Streamer.EmitIntValue(dwarf::DW_CFA_same_value, 1); in EmitCFIInstruction()
1418 Streamer.EmitULEB128IntValue(Reg); in EmitCFIInstruction()
1426 Streamer.EmitIntValue(dwarf::DW_CFA_restore | Reg, 1); in EmitCFIInstruction()
1428 Streamer.EmitIntValue(dwarf::DW_CFA_restore_extended, 1); in EmitCFIInstruction()
1429 Streamer.EmitULEB128IntValue(Reg); in EmitCFIInstruction()
1434 Streamer.EmitIntValue(dwarf::DW_CFA_GNU_args_size, 1); in EmitCFIInstruction()
1435 Streamer.EmitULEB128IntValue(Instr.getOffset()); in EmitCFIInstruction()
1439 Streamer.EmitBytes(Instr.getValues()); in EmitCFIInstruction()
1457 Streamer.EmitDwarfAdvanceFrameAddr(BaseLabel, ThisSym); in EmitCFIInstructions()
1468 MCContext &Context = Streamer.getContext(); in EmitCompactUnwind()
1503 unsigned Size = getSizeForEncoding(Streamer, FDEEncoding); in EmitCompactUnwind()
1504 Streamer.EmitSymbolValue(Frame.Begin, Size); in EmitCompactUnwind()
1507 const MCExpr *Range = MakeStartMinusEndExpr(Streamer, *Frame.Begin, in EmitCompactUnwind()
1509 emitAbsValue(Streamer, Range, 4); in EmitCompactUnwind()
1512 Size = getSizeForEncoding(Streamer, dwarf::DW_EH_PE_udata4); in EmitCompactUnwind()
1513 Streamer.EmitIntValue(Encoding, Size); in EmitCompactUnwind()
1516 Size = getSizeForEncoding(Streamer, dwarf::DW_EH_PE_absptr); in EmitCompactUnwind()
1518 Streamer.EmitSymbolValue(Frame.Personality, Size); in EmitCompactUnwind()
1520 Streamer.EmitIntValue(0, Size); // No personality fn in EmitCompactUnwind()
1523 Size = getSizeForEncoding(Streamer, Frame.LsdaEncoding); in EmitCompactUnwind()
1525 Streamer.EmitSymbolValue(Frame.Lsda, Size); in EmitCompactUnwind()
1527 Streamer.EmitIntValue(0, Size); // No LSDA in EmitCompactUnwind()
1546 MCContext &context = Streamer.getContext(); in EmitCIE()
1551 Streamer.EmitLabel(sectionStart); in EmitCIE()
1557 MakeStartMinusEndExpr(Streamer, *sectionStart, *sectionEnd, 4); in EmitCIE()
1558 emitAbsValue(Streamer, Length, 4); in EmitCIE()
1562 Streamer.EmitIntValue(CIE_ID, 4); in EmitCIE()
1566 Streamer.EmitIntValue(CIEVersion, 1); in EmitCIE()
1580 Streamer.EmitBytes(Augmentation); in EmitCIE()
1582 Streamer.EmitIntValue(0, 1); in EmitCIE()
1586 Streamer.EmitIntValue(context.getAsmInfo()->getCodePointerSize(), 1); in EmitCIE()
1589 Streamer.EmitIntValue(0, 1); in EmitCIE()
1593 Streamer.EmitULEB128IntValue(context.getAsmInfo()->getMinInstAlignment()); in EmitCIE()
1596 Streamer.EmitSLEB128IntValue(getDataAlignmentFactor(Streamer)); in EmitCIE()
1606 Streamer.EmitIntValue(RAReg, 1); in EmitCIE()
1608 Streamer.EmitULEB128IntValue(RAReg); in EmitCIE()
1619 getSizeForEncoding(Streamer, Frame.PersonalityEncoding); in EmitCIE()
1626 Streamer.EmitULEB128IntValue(augmentationLength); in EmitCIE()
1631 emitEncodingByte(Streamer, Frame.PersonalityEncoding); in EmitCIE()
1633 EmitPersonality(Streamer, *Frame.Personality, Frame.PersonalityEncoding); in EmitCIE()
1637 emitEncodingByte(Streamer, Frame.LsdaEncoding); in EmitCIE()
1640 emitEncodingByte(Streamer, MOFI->getFDEEncoding()); in EmitCIE()
1655 Streamer.EmitValueToAlignment(IsEH ? 4 : MAI->getCodePointerSize()); in EmitCIE()
1657 Streamer.EmitLabel(sectionEnd); in EmitCIE()
1665 MCContext &context = Streamer.getContext(); in EmitFDE()
1673 const MCExpr *Length = MakeStartMinusEndExpr(Streamer, *fdeStart, *fdeEnd, 0); in EmitFDE()
1674 emitAbsValue(Streamer, Length, 4); in EmitFDE()
1676 Streamer.EmitLabel(fdeStart); in EmitFDE()
1682 MakeStartMinusEndExpr(Streamer, cieStart, *fdeStart, 0); in EmitFDE()
1683 emitAbsValue(Streamer, offset, 4); in EmitFDE()
1686 MakeStartMinusEndExpr(Streamer, SectionStart, cieStart, 0); in EmitFDE()
1687 emitAbsValue(Streamer, offset, 4); in EmitFDE()
1689 Streamer.EmitSymbolValue(&cieStart, 4); in EmitFDE()
1695 unsigned PCSize = getSizeForEncoding(Streamer, PCEncoding); in EmitFDE()
1696 emitFDESymbol(Streamer, *frame.Begin, PCEncoding, IsEH); in EmitFDE()
1700 MakeStartMinusEndExpr(Streamer, *frame.Begin, *frame.End, 0); in EmitFDE()
1701 emitAbsValue(Streamer, Range, PCSize); in EmitFDE()
1708 augmentationLength += getSizeForEncoding(Streamer, frame.LsdaEncoding); in EmitFDE()
1710 Streamer.EmitULEB128IntValue(augmentationLength); in EmitFDE()
1714 emitFDESymbol(Streamer, *frame.Lsda, frame.LsdaEncoding, true); in EmitFDE()
1725 Streamer.EmitValueToAlignment(Align); in EmitFDE()
1727 Streamer.EmitLabel(fdeEnd); in EmitFDE()
1792 void MCDwarfFrameEmitter::Emit(MCObjectStreamer &Streamer, MCAsmBackend *MAB, in Emit() argument
1794 Streamer.generateCompactUnwindEncodings(MAB); in Emit()
1796 MCContext &Context = Streamer.getContext(); in Emit()
1799 FrameEmitterImpl Emitter(IsEH, Streamer); in Emit()
1800 ArrayRef<MCDwarfFrameInfo> FrameArray = Streamer.getDwarfFrameInfos(); in Emit()
1809 Streamer.SwitchSection(MOFI->getCompactUnwindSection()); in Emit()
1810 Streamer.EmitValueToAlignment(AsmInfo->getCodePointerSize()); in Emit()
1826 Streamer.SwitchSection(&Section); in Emit()
1828 Streamer.EmitLabel(SectionStart); in Emit()
1852 void MCDwarfFrameEmitter::EmitAdvanceLoc(MCObjectStreamer &Streamer, in EmitAdvanceLoc() argument
1854 MCContext &Context = Streamer.getContext(); in EmitAdvanceLoc()
1858 Streamer.EmitBytes(OS.str()); in EmitAdvanceLoc()