Lines Matching refs:OutStreamer

357       OutContext(Streamer->getContext()), OutStreamer(std::move(Streamer)) {  in AsmPrinter()
358 VerboseAsm = OutStreamer->isVerboseAsm(); in AsmPrinter()
407 assert(OutStreamer->hasRawTextSupport() && in emitInitialRawDwarfLocDirective()
420 return OutStreamer->getCurrentSectionOnly(); in getCurrentSection()
445 OutStreamer->initSections(false, *TM.getMCSubtargetInfo()); in doInitialization()
457 OutStreamer->emitVersionForTarget( in doInitialization()
483 OutStreamer->emitFileDirective(FileName, VerStr, "", ""); in doInitialization()
485 OutStreamer->emitFileDirective(FileName); in doInitialization()
497 OutStreamer->AddComment("Start of file scope inline assembly"); in doInitialization()
498 OutStreamer->addBlankLine(); in doInitialization()
501 OutStreamer->AddComment("End of file scope inline assembly"); in doInitialization()
502 OutStreamer->addBlankLine(); in doInitialization()
619 OutStreamer->emitSymbolAttribute(GVSym, MCSA_Global); in emitLinkage()
623 OutStreamer->emitSymbolAttribute(GVSym, MCSA_WeakDefinition); in emitLinkage()
625 OutStreamer->emitSymbolAttribute(GVSym, MCSA_WeakDefAutoPrivate); in emitLinkage()
628 OutStreamer->emitSymbolAttribute(GVSym, MCSA_Global); in emitLinkage()
632 OutStreamer->emitSymbolAttribute(GVSym, MCSA_Weak); in emitLinkage()
636 OutStreamer->emitSymbolAttribute(GVSym, MCSA_Global); in emitLinkage()
699 GV->printAsOperand(OutStreamer->getCommentOS(), in emitGlobalVariable()
701 OutStreamer->getCommentOS() << '\n'; in emitGlobalVariable()
722 OutStreamer->emitSymbolAttribute(EmittedSym, MCSA_ELF_TypeObject); in emitGlobalVariable()
747 OutStreamer->emitCommonSymbol(GVSym, Size, in emitGlobalVariable()
763 OutStreamer->emitZerofill(TheSection, GVSym, Size, Alignment.value()); in emitGlobalVariable()
782 OutStreamer->emitLocalCommonSymbol(GVSym, Size, Alignment.value()); in emitGlobalVariable()
787 OutStreamer->emitSymbolAttribute(GVSym, MCSA_Local); in emitGlobalVariable()
791 OutStreamer->emitCommonSymbol(GVSym, Size, in emitGlobalVariable()
813 OutStreamer->emitTBSSSymbol(TheSection, MangSym, Size, Alignment.value()); in emitGlobalVariable()
815 OutStreamer->switchSection(TheSection); in emitGlobalVariable()
818 OutStreamer->emitLabel(MangSym); in emitGlobalVariable()
824 OutStreamer->addBlankLine(); in emitGlobalVariable()
829 OutStreamer->switchSection(TLVSect); in emitGlobalVariable()
832 OutStreamer->emitLabel(GVSym); in emitGlobalVariable()
839 OutStreamer->emitSymbolValue(GetExternalSymbolSymbol("_tlv_bootstrap"), in emitGlobalVariable()
841 OutStreamer->emitIntValue(0, PtrSize); in emitGlobalVariable()
842 OutStreamer->emitSymbolValue(MangSym, PtrSize); in emitGlobalVariable()
844 OutStreamer->addBlankLine(); in emitGlobalVariable()
850 OutStreamer->switchSection(TheSection); in emitGlobalVariable()
855 OutStreamer->emitLabel(EmittedInitSym); in emitGlobalVariable()
858 OutStreamer->emitLabel(LocalAlias); in emitGlobalVariable()
864 OutStreamer->emitELFSize(EmittedInitSym, in emitGlobalVariable()
867 OutStreamer->addBlankLine(); in emitGlobalVariable()
875 OutStreamer->emitValue(Value, Size); in emitDebugValue()
886 OutStreamer->getCommentOS() in emitFunctionHeader()
900 OutStreamer->switchSection(MF->getSection()); in emitFunctionHeader()
913 OutStreamer->emitSymbolAttribute(CurrentFnSym, MCSA_ELF_TypeFunction); in emitFunctionHeader()
916 OutStreamer->emitSymbolAttribute(CurrentFnSym, MCSA_Cold); in emitFunctionHeader()
919 F.printAsOperand(OutStreamer->getCommentOS(), in emitFunctionHeader()
922 OutStreamer->getCommentOS() << '\n'; in emitFunctionHeader()
933 OutStreamer->emitLabel(PrefixSym); in emitFunctionHeader()
938 OutStreamer->emitSymbolAttribute(CurrentFnSym, MCSA_AltEntry); in emitFunctionHeader()
957 OutStreamer->emitLabel(CurrentPatchableFunctionEntrySym); in emitFunctionHeader()
982 OutStreamer->AddComment("Address taken block that was later removed"); in emitFunctionHeader()
983 OutStreamer->emitLabel(DeadBlockSym); in emitFunctionHeader()
989 OutStreamer->emitLabel(CurPos); in emitFunctionHeader()
990 OutStreamer->emitAssignment(CurrentFnBegin, in emitFunctionHeader()
993 OutStreamer->emitLabel(CurrentFnBegin); in emitFunctionHeader()
1023 OutStreamer->emitValue(PCRel, 4u); in emitFunctionHeader()
1038 OutStreamer->emitLabel(CurrentFnSym); in emitFunctionEntryLabel()
1043 OutStreamer->emitLabel(Sym); in emitFunctionEntryLabel()
1092 OutStreamer->AddComment(OS.str()); in emitImplicitDef()
1093 OutStreamer->addBlankLine(); in emitImplicitDef()
1105 AP.OutStreamer->AddComment(OS.str()); in emitKill()
1106 AP.OutStreamer->addBlankLine(); in emitKill()
1174 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugValueComment()
1209 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugValueComment()
1234 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugLabelComment()
1300 OutStreamer->emitAssignment(FrameAllocSym, in emitFrameAlloc()
1328 OutStreamer->pushSection(); in emitBBAddrMapSection()
1329 OutStreamer->switchSection(BBAddrMapSection); in emitBBAddrMapSection()
1330 OutStreamer->AddComment("version"); in emitBBAddrMapSection()
1331 OutStreamer->emitInt8(OutStreamer->getContext().getBBAddrMapVersion()); in emitBBAddrMapSection()
1332 OutStreamer->AddComment("feature"); in emitBBAddrMapSection()
1333 OutStreamer->emitInt8(0); in emitBBAddrMapSection()
1334 OutStreamer->AddComment("function address"); in emitBBAddrMapSection()
1335 OutStreamer->emitSymbolValue(FunctionSymbol, getPointerSize()); in emitBBAddrMapSection()
1336 OutStreamer->AddComment("number of basic blocks"); in emitBBAddrMapSection()
1337 OutStreamer->emitULEB128IntValue(MF.size()); in emitBBAddrMapSection()
1349 OutStreamer->emitULEB128IntValue(getBBAddrMapMetadata(MBB)); in emitBBAddrMapSection()
1352 OutStreamer->popSection(); in emitBBAddrMapSection()
1380 OutStreamer->pushSection(); in emitStackSizeSection()
1381 OutStreamer->switchSection(StackSizeSection); in emitStackSizeSection()
1386 OutStreamer->emitSymbolValue(FunctionSymbol, TM.getProgramPointerSize()); in emitStackSizeSection()
1387 OutStreamer->emitULEB128IntValue(StackSize); in emitStackSizeSection()
1389 OutStreamer->popSection(); in emitStackSizeSection()
1482 OutStreamer->emitLabel(S); in emitFunctionBody()
1491 emitComments(MI, OutStreamer->getCommentOS()); in emitFunctionBody()
1503 OutStreamer->emitLabel(MI.getOperand(0).getMCSymbol()); in emitFunctionBody()
1542 OutStreamer->emitRawComment("ARITH_FENCE"); in emitFunctionBody()
1549 auto Name = OutStreamer->getMnemonic(MCI); in emitFunctionBody()
1558 OutStreamer->emitLabel(S); in emitFunctionBody()
1572 OutStreamer->emitLabel(MBB.getEndSymbol()); in emitFunctionBody()
1584 OutStreamer->emitELFSize(CurrentSectionBeginSym, SizeExp); in emitFunctionBody()
1647 OutStreamer->AddComment("avoids zero-length function"); in emitFunctionBody()
1653 OutStreamer->switchSection(MF->getSection()); in emitFunctionBody()
1662 OutStreamer->AddComment("Address of block that was removed by CodeGen"); in emitFunctionBody()
1663 OutStreamer->emitLabel(Sym); in emitFunctionBody()
1673 OutStreamer->emitLabel(CurrentFnEnd); in emitFunctionBody()
1684 OutStreamer->emitELFSize(CurrentFnSym, SizeExp); in emitFunctionBody()
1720 OutStreamer->getCommentOS() << "-- End function\n"; in emitFunctionBody()
1722 OutStreamer->addBlankLine(); in emitFunctionBody()
1834 OutStreamer->emitSymbolAttribute(Name, MCSA_Global); in emitGlobalAlias()
1836 OutStreamer->emitSymbolAttribute(Name, MCSA_WeakReference); in emitGlobalAlias()
1843 OutStreamer->emitSymbolAttribute(Name, MCSA_ELF_TypeFunction); in emitGlobalAlias()
1845 OutStreamer->beginCOFFSymbolDef(Name); in emitGlobalAlias()
1846 OutStreamer->emitCOFFSymbolStorageClass( in emitGlobalAlias()
1849 OutStreamer->emitCOFFSymbolType(COFF::IMAGE_SYM_DTYPE_FUNCTION in emitGlobalAlias()
1851 OutStreamer->endCOFFSymbolDef(); in emitGlobalAlias()
1860 OutStreamer->emitSymbolAttribute(Name, MCSA_AltEntry); in emitGlobalAlias()
1863 OutStreamer->emitAssignment(Name, Expr); in emitGlobalAlias()
1866 OutStreamer->emitAssignment(LocalAlias, Expr); in emitGlobalAlias()
1878 OutStreamer->emitELFSize(Name, MCConstantExpr::create(Size, OutContext)); in emitGlobalAlias()
1889 OutStreamer->emitSymbolAttribute(Name, MCSA_Global); in emitGlobalIFunc()
1891 OutStreamer->emitSymbolAttribute(Name, MCSA_WeakReference); in emitGlobalIFunc()
1895 OutStreamer->emitSymbolAttribute(Name, MCSA_ELF_TypeIndFunction); in emitGlobalIFunc()
1900 OutStreamer->emitAssignment(Name, Expr); in emitGlobalIFunc()
1903 OutStreamer->emitAssignment(LocalAlias, Expr); in emitGlobalIFunc()
1929 OutStreamer->switchSection(RemarksSection); in emitRemarksSection()
1931 OutStreamer->emitBinaryData(OS.str()); in emitRemarksSection()
1992 TLOF.emitModuleMetadata(*OutStreamer, M); in doFinalization()
2000 OutStreamer->switchSection(TLOF.getDataSection()); in doFinalization()
2005 OutStreamer->emitLabel(Stub.first); in doFinalization()
2006 OutStreamer->emitSymbolValue(Stub.second.getPointer(), in doFinalization()
2024 OutStreamer->switchSection(OutContext.getCOFFSection( in doFinalization()
2031 OutStreamer->emitSymbolAttribute(Stub.first, MCSA_Global); in doFinalization()
2032 OutStreamer->emitLabel(Stub.first); in doFinalization()
2033 OutStreamer->emitSymbolValue(Stub.second.getPointer(), in doFinalization()
2041 if (auto *TS = OutStreamer->getTargetStreamer()) in doFinalization()
2068 OutStreamer->emitSymbolAttribute(getSymbol(&GO), MCSA_WeakReference); in doFinalization()
2078 OutStreamer->emitSymbolAttribute(getSymbol(Global), MCSA_WeakReference); in doFinalization()
2118 OutStreamer->switchSection(OutContext.getELFSection(".note.GNU-split-stack", in doFinalization()
2121 OutStreamer->switchSection(OutContext.getELFSection( in doFinalization()
2130 OutStreamer->switchSection(S); in doFinalization()
2134 OutStreamer->emitAddrsig(); in doFinalization()
2139 OutStreamer->emitAddrsigSym(getSymbol(&GV)); in doFinalization()
2151 OutStreamer->switchSection( in doFinalization()
2154 OutStreamer->emitBytes(GV.getPartition()); in doFinalization()
2155 OutStreamer->emitZeros(1); in doFinalization()
2156 OutStreamer->emitValue( in doFinalization()
2169 OutStreamer->finish(); in doFinalization()
2170 OutStreamer->reset(); in doFinalization()
2302 OutStreamer->switchSection(CPSections[i].S); in emitConstantPool()
2312 OutStreamer->emitZeros(NewOffset - Offset); in emitConstantPool()
2316 OutStreamer->emitLabel(Sym); in emitConstantPool()
2345 OutStreamer->switchSection(ReadOnlySection); in emitJumpTableInfo()
2353 OutStreamer->emitDataRegion(MCDR_DataRegionJT32); in emitJumpTableInfo()
2375 OutStreamer->emitAssignment(GetJTSetSymbol(JTI, MBB->getNumber()), in emitJumpTableInfo()
2389 OutStreamer->emitLabel(GetJTISymbol(JTI, true)); in emitJumpTableInfo()
2392 OutStreamer->emitLabel(JTISymbol); in emitJumpTableInfo()
2398 OutStreamer->emitDataRegion(MCDR_DataRegionEnd); in emitJumpTableInfo()
2425 OutStreamer->emitGPRel32Value(MCSymbolRefExpr::create(MBBSym, OutContext)); in emitJumpTableEntry()
2434 OutStreamer->emitGPRel64Value(MCSymbolRefExpr::create(MBBSym, OutContext)); in emitJumpTableEntry()
2462 OutStreamer->emitValue(Value, EntrySize); in emitJumpTableEntry()
2509 OutStreamer->emitSymbolAttribute(getSymbol(GV), MCSA_NoDeadStrip); in emitLLVMUsedList()
2581 OutStreamer->switchSection(OutputSection); in emitXXStructorList()
2582 if (OutStreamer->getCurrentSection() != OutStreamer->getPreviousSection()) in emitXXStructorList()
2598 OutStreamer->emitIdent(S->getString()); in emitModuleIdents()
2612 OutStreamer->pushSection(); in emitModuleCommandLines()
2613 OutStreamer->switchSection(CommandLine); in emitModuleCommandLines()
2614 OutStreamer->emitZeros(1); in emitModuleCommandLines()
2620 OutStreamer->emitBytes(S->getString()); in emitModuleCommandLines()
2621 OutStreamer->emitZeros(1); in emitModuleCommandLines()
2623 OutStreamer->popSection(); in emitModuleCommandLines()
2632 void AsmPrinter::emitInt8(int Value) const { OutStreamer->emitInt8(Value); } in emitInt8()
2635 void AsmPrinter::emitInt16(int Value) const { OutStreamer->emitInt16(Value); } in emitInt16()
2638 void AsmPrinter::emitInt32(int Value) const { OutStreamer->emitInt32(Value); } in emitInt32()
2642 OutStreamer->emitInt64(Value); in emitInt64()
2650 OutStreamer->emitAbsoluteSymbolDiff(Hi, Lo, Size); in emitLabelDifference()
2660 OutStreamer->emitCOFFSecRel32(Label, Offset); in emitLabelPlusOffset()
2662 OutStreamer->emitZeros(Size - 4); in emitLabelPlusOffset()
2672 OutStreamer->emitValue(Expr, Size); in emitLabelPlusOffset()
2695 OutStreamer->emitCodeAlignment(Alignment.value(), STI, MaxBytesToEmit); in emitAlignment()
2697 OutStreamer->emitValueToAlignment(Alignment.value(), 0, 1, MaxBytesToEmit); in emitAlignment()
2924 AP.OutStreamer->emitLabel(AP.getSymbol(GA)); in emitGlobalAliasInline()
2939 return AP.OutStreamer->emitFill(Bytes, Value); in emitGlobalConstantDataSequential()
2944 return AP.OutStreamer->emitBytes(CDS->getAsString()); in emitGlobalConstantDataSequential()
2952 AP.OutStreamer->getCommentOS() in emitGlobalConstantDataSequential()
2954 AP.OutStreamer->emitIntValue(CDS->getElementAsInteger(I), in emitGlobalConstantDataSequential()
2970 AP.OutStreamer->emitZeros(Padding); in emitGlobalConstantDataSequential()
2983 AP.OutStreamer->emitFill(Bytes, Value); in emitGlobalConstantArray()
3030 AP.OutStreamer->emitZeros(Padding); in emitGlobalConstantVector()
3058 AP.OutStreamer->emitZeros(PadSize); in emitGlobalConstantStruct()
3073 ET->print(AP.OutStreamer->getCommentOS()); in emitGlobalConstantFP()
3074 AP.OutStreamer->getCommentOS() << ' ' << StrVal << '\n'; in emitGlobalConstantFP()
3090 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk--], TrailingBytes); in emitGlobalConstantFP()
3093 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], sizeof(uint64_t)); in emitGlobalConstantFP()
3097 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], sizeof(uint64_t)); in emitGlobalConstantFP()
3100 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], TrailingBytes); in emitGlobalConstantFP()
3105 AP.OutStreamer->emitZeros(DL.getTypeAllocSize(ET) - DL.getTypeStoreSize(ET)); in emitGlobalConstantFP()
3153 AP.OutStreamer->emitIntValue(Val, 8); in emitGlobalConstantLargeInt()
3165 AP.OutStreamer->emitIntValue(ExtraBits, Size); in emitGlobalConstantLargeInt()
3252 FinalGV, FinalSym, MV, Offset, AP.MMI, *AP.OutStreamer); in handleIndirectSymViaGOTPCRel()
3274 return AP.OutStreamer->emitZeros(Size); in emitGlobalConstantImpl()
3281 AP.OutStreamer->getCommentOS() in emitGlobalConstantImpl()
3283 AP.OutStreamer->emitIntValue(CI->getZExtValue(), StoreSize); in emitGlobalConstantImpl()
3290 AP.OutStreamer->emitZeros(Size - StoreSize); in emitGlobalConstantImpl()
3299 AP.OutStreamer->emitIntValue(0, Size); in emitGlobalConstantImpl()
3341 AP.OutStreamer->emitValue(ME, Size); in emitGlobalConstantImpl()
3353 OutStreamer->emitIntValue(0, 1); in emitGlobalConstant()
3361 OutStreamer->emitLabel(getSymbol(GA)); in emitGlobalConstant()
3380 EmitToStreamer(*OutStreamer, Nop); in emitNops()
3415 OutStreamer->emitSymbolAttribute(Sym, MCSA_Global); in GetCPISymbol()
3493 AP.OutStreamer->AddComment(" in Loop: Header=BB" + in emitBasicBlockLoopComments()
3502 raw_ostream &OS = AP.OutStreamer->getCommentOS(); in emitBasicBlockLoopComments()
3538 OutStreamer->switchSection( in emitBasicBlockStart()
3551 OutStreamer->AddComment("Block address taken"); in emitBasicBlockStart()
3557 OutStreamer->emitLabel(Sym); in emitBasicBlockStart()
3564 BB->printAsOperand(OutStreamer->getCommentOS(), in emitBasicBlockStart()
3566 OutStreamer->getCommentOS() << '\n'; in emitBasicBlockStart()
3577 OutStreamer->AddComment("Label of block must be emitted"); in emitBasicBlockStart()
3578 OutStreamer->emitLabel(MBB.getSymbol()); in emitBasicBlockStart()
3582 OutStreamer->emitRawComment(" %bb." + Twine(MBB.getNumber()) + ":", in emitBasicBlockStart()
3589 OutStreamer->emitLabel(MBB.getEHCatchretSymbol()); in emitBasicBlockStart()
3626 OutStreamer->emitSymbolAttribute(Sym, Attr); in emitVisibility()
3754 auto PrevSection = OutStreamer->getCurrentSectionOnly(); in emitXRayTable()
3793 OutStreamer->switchSection(InstMap); in emitXRayTable()
3794 OutStreamer->emitLabel(SledsStart); in emitXRayTable()
3797 OutStreamer->emitLabel(Dot); in emitXRayTable()
3798 OutStreamer->emitValueImpl( in emitXRayTable()
3802 OutStreamer->emitValueImpl( in emitXRayTable()
3810 Sled.emit(WordSizeBytes, OutStreamer.get()); in emitXRayTable()
3813 OutStreamer->emitLabel(SledsEnd); in emitXRayTable()
3820 OutStreamer->switchSection(FnSledIndex); in emitXRayTable()
3821 OutStreamer->emitCodeAlignment(2 * WordSizeBytes, &getSubtargetInfo()); in emitXRayTable()
3822 OutStreamer->emitSymbolValue(SledsStart, WordSizeBytes, false); in emitXRayTable()
3823 OutStreamer->emitSymbolValue(SledsEnd, WordSizeBytes, false); in emitXRayTable()
3824 OutStreamer->switchSection(PrevSection); in emitXRayTable()
3869 OutStreamer->switchSection(OutContext.getELFSection( in emitPatchableFunctionEntries()
3873 OutStreamer->emitSymbolValue(CurrentPatchableFunctionEntrySym, PointerSize); in emitPatchableFunctionEntries()
3878 return OutStreamer->getContext().getDwarfVersion(); in getDwarfVersion()
3882 OutStreamer->getContext().setDwarfVersion(Version); in setDwarfVersion()
3886 return OutStreamer->getContext().getDwarfFormat() == dwarf::DWARF64; in isDwarf64()
3891 OutStreamer->getContext().getDwarfFormat()); in getDwarfOffsetByteSize()
3896 OutStreamer->getContext().getDwarfFormat(), in getDwarfFormParams()
3902 OutStreamer->getContext().getDwarfFormat()); in getUnitLengthFieldByteSize()