Lines Matching refs:OutStreamer
199 OutContext(Streamer->getContext()), OutStreamer(std::move(Streamer)) { in AsmPrinter()
200 VerboseAsm = OutStreamer->isVerboseAsm(); in AsmPrinter()
249 assert(OutStreamer->hasRawTextSupport() && in emitInitialRawDwarfLocDirective()
257 return OutStreamer->getCurrentSectionOnly(); in getCurrentSection()
278 OutStreamer->InitSections(false); in doInitialization()
292 OutStreamer->emitVersionForTarget(Target, M.getSDKVersion()); in doInitialization()
315 OutStreamer->emitFileDirective(FileName, VerStr, "", ""); in doInitialization()
317 OutStreamer->emitFileDirective(FileName); in doInitialization()
335 OutStreamer->AddComment("Start of file scope inline assembly"); in doInitialization()
336 OutStreamer->AddBlankLine(); in doInitialization()
339 OutStreamer->AddComment("End of file scope inline assembly"); in doInitialization()
340 OutStreamer->AddBlankLine(); in doInitialization()
457 OutStreamer->emitSymbolAttribute(GVSym, MCSA_Global); in emitLinkage()
461 OutStreamer->emitSymbolAttribute(GVSym, MCSA_WeakDefinition); in emitLinkage()
463 OutStreamer->emitSymbolAttribute(GVSym, MCSA_WeakDefAutoPrivate); in emitLinkage()
466 OutStreamer->emitSymbolAttribute(GVSym, MCSA_Global); in emitLinkage()
470 OutStreamer->emitSymbolAttribute(GVSym, MCSA_Weak); in emitLinkage()
474 OutStreamer->emitSymbolAttribute(GVSym, MCSA_Global); in emitLinkage()
537 GV->printAsOperand(OutStreamer->GetCommentOS(), in emitGlobalVariable()
539 OutStreamer->GetCommentOS() << '\n'; in emitGlobalVariable()
560 OutStreamer->emitSymbolAttribute(EmittedSym, MCSA_ELF_TypeObject); in emitGlobalVariable()
585 OutStreamer->emitCommonSymbol(GVSym, Size, in emitGlobalVariable()
601 OutStreamer->emitZerofill(TheSection, GVSym, Size, Alignment.value()); in emitGlobalVariable()
620 OutStreamer->emitLocalCommonSymbol(GVSym, Size, Alignment.value()); in emitGlobalVariable()
625 OutStreamer->emitSymbolAttribute(GVSym, MCSA_Local); in emitGlobalVariable()
629 OutStreamer->emitCommonSymbol(GVSym, Size, in emitGlobalVariable()
651 OutStreamer->emitTBSSSymbol(TheSection, MangSym, Size, Alignment.value()); in emitGlobalVariable()
653 OutStreamer->SwitchSection(TheSection); in emitGlobalVariable()
656 OutStreamer->emitLabel(MangSym); in emitGlobalVariable()
662 OutStreamer->AddBlankLine(); in emitGlobalVariable()
667 OutStreamer->SwitchSection(TLVSect); in emitGlobalVariable()
670 OutStreamer->emitLabel(GVSym); in emitGlobalVariable()
677 OutStreamer->emitSymbolValue(GetExternalSymbolSymbol("_tlv_bootstrap"), in emitGlobalVariable()
679 OutStreamer->emitIntValue(0, PtrSize); in emitGlobalVariable()
680 OutStreamer->emitSymbolValue(MangSym, PtrSize); in emitGlobalVariable()
682 OutStreamer->AddBlankLine(); in emitGlobalVariable()
688 OutStreamer->SwitchSection(TheSection); in emitGlobalVariable()
693 OutStreamer->emitLabel(EmittedInitSym); in emitGlobalVariable()
696 OutStreamer->emitLabel(LocalAlias); in emitGlobalVariable()
702 OutStreamer->emitELFSize(EmittedInitSym, in emitGlobalVariable()
705 OutStreamer->AddBlankLine(); in emitGlobalVariable()
713 OutStreamer->emitValue(Value, Size); in emitDebugValue()
724 OutStreamer->GetCommentOS() in emitFunctionHeader()
738 OutStreamer->SwitchSection(MF->getSection()); in emitFunctionHeader()
751 OutStreamer->emitSymbolAttribute(CurrentFnSym, MCSA_ELF_TypeFunction); in emitFunctionHeader()
754 OutStreamer->emitSymbolAttribute(CurrentFnSym, MCSA_Cold); in emitFunctionHeader()
757 F.printAsOperand(OutStreamer->GetCommentOS(), in emitFunctionHeader()
760 OutStreamer->GetCommentOS() << '\n'; in emitFunctionHeader()
771 OutStreamer->emitLabel(PrefixSym); in emitFunctionHeader()
776 OutStreamer->emitSymbolAttribute(CurrentFnSym, MCSA_AltEntry); in emitFunctionHeader()
795 OutStreamer->emitLabel(CurrentPatchableFunctionEntrySym); in emitFunctionHeader()
820 OutStreamer->AddComment("Address taken block that was later removed"); in emitFunctionHeader()
821 OutStreamer->emitLabel(DeadBlockSyms[i]); in emitFunctionHeader()
827 OutStreamer->emitLabel(CurPos); in emitFunctionHeader()
828 OutStreamer->emitAssignment(CurrentFnBegin, in emitFunctionHeader()
831 OutStreamer->emitLabel(CurrentFnBegin); in emitFunctionHeader()
858 OutStreamer->emitLabel(CurrentFnSym); in emitFunctionEntryLabel()
863 OutStreamer->emitLabel(Sym); in emitFunctionEntryLabel()
912 OutStreamer->AddComment(OS.str()); in emitImplicitDef()
913 OutStreamer->AddBlankLine(); in emitImplicitDef()
926 AP.OutStreamer->AddComment(OS.str()); in emitKill()
927 AP.OutStreamer->AddBlankLine(); in emitKill()
995 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugValueComment()
1030 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugValueComment()
1055 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugLabelComment()
1121 OutStreamer->emitAssignment(FrameAllocSym, in emitFrameAlloc()
1149 OutStreamer->PushSection(); in emitBBAddrMapSection()
1150 OutStreamer->SwitchSection(BBAddrMapSection); in emitBBAddrMapSection()
1151 OutStreamer->emitSymbolValue(FunctionSymbol, getPointerSize()); in emitBBAddrMapSection()
1153 OutStreamer->emitULEB128IntValue(MF.size()); in emitBBAddrMapSection()
1163 OutStreamer->emitULEB128IntValue(getBBAddrMapMetadata(MBB)); in emitBBAddrMapSection()
1165 OutStreamer->PopSection(); in emitBBAddrMapSection()
1191 OutStreamer->PushSection(); in emitStackSizeSection()
1192 OutStreamer->SwitchSection(StackSizeSection); in emitStackSizeSection()
1196 OutStreamer->emitSymbolValue(FunctionSymbol, TM.getProgramPointerSize()); in emitStackSizeSection()
1197 OutStreamer->emitULEB128IntValue(StackSize); in emitStackSizeSection()
1199 OutStreamer->PopSection(); in emitStackSizeSection()
1291 OutStreamer->emitLabel(S); in emitFunctionBody()
1300 emitComments(MI, OutStreamer->GetCommentOS()); in emitFunctionBody()
1312 OutStreamer->emitLabel(MI.getOperand(0).getMCSymbol()); in emitFunctionBody()
1351 OutStreamer->emitRawComment("ARITH_FENCE"); in emitFunctionBody()
1358 auto Name = OutStreamer->getMnemonic(MCI); in emitFunctionBody()
1367 OutStreamer->emitLabel(S); in emitFunctionBody()
1381 OutStreamer->emitLabel(MBB.getEndSymbol()); in emitFunctionBody()
1393 OutStreamer->emitELFSize(CurrentSectionBeginSym, SizeExp); in emitFunctionBody()
1456 OutStreamer->AddComment("avoids zero-length function"); in emitFunctionBody()
1462 OutStreamer->SwitchSection(MF->getSection()); in emitFunctionBody()
1471 OutStreamer->AddComment("Address of block that was removed by CodeGen"); in emitFunctionBody()
1472 OutStreamer->emitLabel(Sym); in emitFunctionBody()
1482 OutStreamer->emitLabel(CurrentFnEnd); in emitFunctionBody()
1493 OutStreamer->emitELFSize(CurrentFnSym, SizeExp); in emitFunctionBody()
1529 OutStreamer->GetCommentOS() << "-- End function\n"; in emitFunctionBody()
1531 OutStreamer->AddBlankLine(); in emitFunctionBody()
1643 OutStreamer->emitSymbolAttribute(Name, MCSA_Global); in emitGlobalIndirectSymbol()
1645 OutStreamer->emitSymbolAttribute(Name, MCSA_WeakReference); in emitGlobalIndirectSymbol()
1652 OutStreamer->emitSymbolAttribute(Name, isa<GlobalIFunc>(GIS) in emitGlobalIndirectSymbol()
1661 OutStreamer->emitSymbolAttribute(Name, MCSA_AltEntry); in emitGlobalIndirectSymbol()
1664 OutStreamer->emitAssignment(Name, Expr); in emitGlobalIndirectSymbol()
1667 OutStreamer->emitAssignment(LocalAlias, Expr); in emitGlobalIndirectSymbol()
1680 OutStreamer->emitELFSize(Name, MCConstantExpr::create(Size, OutContext)); in emitGlobalIndirectSymbol()
1708 OutStreamer->SwitchSection(RemarksSection); in emitRemarksSection()
1710 OutStreamer->emitBinaryData(OS.str()); in emitRemarksSection()
1771 TLOF.emitModuleMetadata(*OutStreamer, M); in doFinalization()
1779 OutStreamer->SwitchSection(TLOF.getDataSection()); in doFinalization()
1784 OutStreamer->emitLabel(Stub.first); in doFinalization()
1785 OutStreamer->emitSymbolValue(Stub.second.getPointer(), in doFinalization()
1803 OutStreamer->SwitchSection(OutContext.getCOFFSection( in doFinalization()
1810 OutStreamer->emitSymbolAttribute(Stub.first, MCSA_Global); in doFinalization()
1811 OutStreamer->emitLabel(Stub.first); in doFinalization()
1812 OutStreamer->emitSymbolValue(Stub.second.getPointer(), in doFinalization()
1842 OutStreamer->emitSymbolAttribute(getSymbol(&GO), MCSA_WeakReference); in doFinalization()
1884 OutStreamer->SwitchSection(ReadOnlySection); in doFinalization()
1888 OutStreamer->emitLabel(AddrSymbol); in doFinalization()
1891 OutStreamer->emitSymbolValue(GetExternalSymbolSymbol("__morestack"), in doFinalization()
1898 OutStreamer->SwitchSection( in doFinalization()
1901 OutStreamer->SwitchSection( in doFinalization()
1910 OutStreamer->SwitchSection(S); in doFinalization()
1914 OutStreamer->emitAddrsig(); in doFinalization()
1919 OutStreamer->emitAddrsigSym(getSymbol(&GV)); in doFinalization()
1931 OutStreamer->SwitchSection( in doFinalization()
1934 OutStreamer->emitBytes(GV.getPartition()); in doFinalization()
1935 OutStreamer->emitZeros(1); in doFinalization()
1936 OutStreamer->emitValue( in doFinalization()
1948 OutStreamer->Finish(); in doFinalization()
1949 OutStreamer->reset(); in doFinalization()
2071 OutStreamer->SwitchSection(CPSections[i].S); in emitConstantPool()
2081 OutStreamer->emitZeros(NewOffset - Offset); in emitConstantPool()
2085 OutStreamer->emitLabel(Sym); in emitConstantPool()
2114 OutStreamer->SwitchSection(ReadOnlySection); in emitJumpTableInfo()
2122 OutStreamer->emitDataRegion(MCDR_DataRegionJT32); in emitJumpTableInfo()
2145 OutStreamer->emitAssignment(GetJTSetSymbol(JTI, MBB->getNumber()), in emitJumpTableInfo()
2159 OutStreamer->emitLabel(GetJTISymbol(JTI, true)); in emitJumpTableInfo()
2162 OutStreamer->emitLabel(JTISymbol); in emitJumpTableInfo()
2168 OutStreamer->emitDataRegion(MCDR_DataRegionEnd); in emitJumpTableInfo()
2195 OutStreamer->emitGPRel32Value(MCSymbolRefExpr::create(MBBSym, OutContext)); in emitJumpTableEntry()
2204 OutStreamer->emitGPRel64Value(MCSymbolRefExpr::create(MBBSym, OutContext)); in emitJumpTableEntry()
2232 OutStreamer->emitValue(Value, EntrySize); in emitJumpTableEntry()
2279 OutStreamer->emitSymbolAttribute(getSymbol(GV), MCSA_NoDeadStrip); in emitLLVMUsedList()
2351 OutStreamer->SwitchSection(OutputSection); in emitXXStructorList()
2352 if (OutStreamer->getCurrentSection() != OutStreamer->getPreviousSection()) in emitXXStructorList()
2368 OutStreamer->emitIdent(S->getString()); in emitModuleIdents()
2382 OutStreamer->PushSection(); in emitModuleCommandLines()
2383 OutStreamer->SwitchSection(CommandLine); in emitModuleCommandLines()
2384 OutStreamer->emitZeros(1); in emitModuleCommandLines()
2390 OutStreamer->emitBytes(S->getString()); in emitModuleCommandLines()
2391 OutStreamer->emitZeros(1); in emitModuleCommandLines()
2393 OutStreamer->PopSection(); in emitModuleCommandLines()
2402 void AsmPrinter::emitInt8(int Value) const { OutStreamer->emitInt8(Value); } in emitInt8()
2405 void AsmPrinter::emitInt16(int Value) const { OutStreamer->emitInt16(Value); } in emitInt16()
2408 void AsmPrinter::emitInt32(int Value) const { OutStreamer->emitInt32(Value); } in emitInt32()
2412 OutStreamer->emitInt64(Value); in emitInt64()
2420 OutStreamer->emitAbsoluteSymbolDiff(Hi, Lo, Size); in emitLabelDifference()
2430 OutStreamer->EmitCOFFSecRel32(Label, Offset); in emitLabelPlusOffset()
2432 OutStreamer->emitZeros(Size - 4); in emitLabelPlusOffset()
2442 OutStreamer->emitValue(Expr, Size); in emitLabelPlusOffset()
2459 OutStreamer->emitCodeAlignment(Alignment.value()); in emitAlignment()
2461 OutStreamer->emitValueToAlignment(Alignment.value()); in emitAlignment()
2706 return AP.OutStreamer->emitFill(Bytes, Value); in emitGlobalConstantDataSequential()
2711 return AP.OutStreamer->emitBytes(CDS->getAsString()); in emitGlobalConstantDataSequential()
2718 AP.OutStreamer->GetCommentOS() << format("0x%" PRIx64 "\n", in emitGlobalConstantDataSequential()
2720 AP.OutStreamer->emitIntValue(CDS->getElementAsInteger(i), in emitGlobalConstantDataSequential()
2734 AP.OutStreamer->emitZeros(Padding); in emitGlobalConstantDataSequential()
2746 AP.OutStreamer->emitFill(Bytes, Value); in emitGlobalConstantArray()
2765 AP.OutStreamer->emitZeros(Padding); in emitGlobalConstantVector()
2790 AP.OutStreamer->emitZeros(PadSize); in emitGlobalConstantStruct()
2805 ET->print(AP.OutStreamer->GetCommentOS()); in emitGlobalConstantFP()
2806 AP.OutStreamer->GetCommentOS() << ' ' << StrVal << '\n'; in emitGlobalConstantFP()
2822 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk--], TrailingBytes); in emitGlobalConstantFP()
2825 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], sizeof(uint64_t)); in emitGlobalConstantFP()
2829 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], sizeof(uint64_t)); in emitGlobalConstantFP()
2832 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], TrailingBytes); in emitGlobalConstantFP()
2837 AP.OutStreamer->emitZeros(DL.getTypeAllocSize(ET) - DL.getTypeStoreSize(ET)); in emitGlobalConstantFP()
2885 AP.OutStreamer->emitIntValue(Val, 8); in emitGlobalConstantLargeInt()
2897 AP.OutStreamer->emitIntValue(ExtraBits, Size); in emitGlobalConstantLargeInt()
2984 FinalGV, FinalSym, MV, Offset, AP.MMI, *AP.OutStreamer); in handleIndirectSymViaGOTPCRel()
3004 return AP.OutStreamer->emitZeros(Size); in emitGlobalConstantImpl()
3011 AP.OutStreamer->GetCommentOS() << format("0x%" PRIx64 "\n", in emitGlobalConstantImpl()
3013 AP.OutStreamer->emitIntValue(CI->getZExtValue(), StoreSize); in emitGlobalConstantImpl()
3020 AP.OutStreamer->emitZeros(Size - StoreSize); in emitGlobalConstantImpl()
3029 AP.OutStreamer->emitIntValue(0, Size); in emitGlobalConstantImpl()
3071 AP.OutStreamer->emitValue(ME, Size); in emitGlobalConstantImpl()
3082 OutStreamer->emitIntValue(0, 1); in emitGlobalConstant()
3101 EmitToStreamer(*OutStreamer, Nop); in emitNops()
3135 OutStreamer->emitSymbolAttribute(Sym, MCSA_Global); in GetCPISymbol()
3213 AP.OutStreamer->AddComment(" in Loop: Header=BB" + in emitBasicBlockLoopComments()
3222 raw_ostream &OS = AP.OutStreamer->GetCommentOS(); in emitBasicBlockLoopComments()
3258 OutStreamer->SwitchSection( in emitBasicBlockStart()
3271 OutStreamer->AddComment("Block address taken"); in emitBasicBlockStart()
3277 OutStreamer->emitLabel(Sym); in emitBasicBlockStart()
3284 BB->printAsOperand(OutStreamer->GetCommentOS(), in emitBasicBlockStart()
3286 OutStreamer->GetCommentOS() << '\n'; in emitBasicBlockStart()
3297 OutStreamer->AddComment("Label of block must be emitted"); in emitBasicBlockStart()
3298 OutStreamer->emitLabel(MBB.getSymbol()); in emitBasicBlockStart()
3302 OutStreamer->emitRawComment(" %bb." + Twine(MBB.getNumber()) + ":", in emitBasicBlockStart()
3309 OutStreamer->emitLabel(MBB.getEHCatchretSymbol()); in emitBasicBlockStart()
3346 OutStreamer->emitSymbolAttribute(Sym, Attr); in emitVisibility()
3474 auto PrevSection = OutStreamer->getCurrentSectionOnly(); in emitXRayTable()
3513 OutStreamer->SwitchSection(InstMap); in emitXRayTable()
3514 OutStreamer->emitLabel(SledsStart); in emitXRayTable()
3517 OutStreamer->emitLabel(Dot); in emitXRayTable()
3518 OutStreamer->emitValueImpl( in emitXRayTable()
3522 OutStreamer->emitValueImpl( in emitXRayTable()
3530 Sled.emit(WordSizeBytes, OutStreamer.get()); in emitXRayTable()
3533 OutStreamer->emitLabel(SledsEnd); in emitXRayTable()
3540 OutStreamer->SwitchSection(FnSledIndex); in emitXRayTable()
3541 OutStreamer->emitCodeAlignment(2 * WordSizeBytes); in emitXRayTable()
3542 OutStreamer->emitSymbolValue(SledsStart, WordSizeBytes, false); in emitXRayTable()
3543 OutStreamer->emitSymbolValue(SledsEnd, WordSizeBytes, false); in emitXRayTable()
3544 OutStreamer->SwitchSection(PrevSection); in emitXRayTable()
3589 OutStreamer->SwitchSection(OutContext.getELFSection( in emitPatchableFunctionEntries()
3593 OutStreamer->emitSymbolValue(CurrentPatchableFunctionEntrySym, PointerSize); in emitPatchableFunctionEntries()
3598 return OutStreamer->getContext().getDwarfVersion(); in getDwarfVersion()
3602 OutStreamer->getContext().setDwarfVersion(Version); in setDwarfVersion()
3606 return OutStreamer->getContext().getDwarfFormat() == dwarf::DWARF64; in isDwarf64()
3611 OutStreamer->getContext().getDwarfFormat()); in getDwarfOffsetByteSize()
3616 OutStreamer->getContext().getDwarfFormat()); in getUnitLengthFieldByteSize()