Lines Matching refs:OutStreamer
190 OutContext(Streamer->getContext()), OutStreamer(std::move(Streamer)) { in AsmPrinter()
191 VerboseAsm = OutStreamer->isVerboseAsm(); in AsmPrinter()
240 assert(OutStreamer->hasRawTextSupport() && in emitInitialRawDwarfLocDirective()
248 return OutStreamer->getCurrentSectionOnly(); in getCurrentSection()
269 OutStreamer->InitSections(false); in doInitialization()
283 OutStreamer->emitVersionForTarget(Target, M.getSDKVersion()); in doInitialization()
292 OutStreamer->emitFileDirective( in doInitialization()
310 OutStreamer->AddComment("Start of file scope inline assembly"); in doInitialization()
311 OutStreamer->AddBlankLine(); in doInitialization()
314 OutStreamer->AddComment("End of file scope inline assembly"); in doInitialization()
315 OutStreamer->AddBlankLine(); in doInitialization()
424 OutStreamer->emitSymbolAttribute(GVSym, MCSA_Global); in emitLinkage()
428 OutStreamer->emitSymbolAttribute(GVSym, MCSA_WeakDefinition); in emitLinkage()
430 OutStreamer->emitSymbolAttribute(GVSym, MCSA_WeakDefAutoPrivate); in emitLinkage()
433 OutStreamer->emitSymbolAttribute(GVSym, MCSA_Global); in emitLinkage()
437 OutStreamer->emitSymbolAttribute(GVSym, MCSA_Weak); in emitLinkage()
441 OutStreamer->emitSymbolAttribute(GVSym, MCSA_Global); in emitLinkage()
506 GV->printAsOperand(OutStreamer->GetCommentOS(), in emitGlobalVariable()
508 OutStreamer->GetCommentOS() << '\n'; in emitGlobalVariable()
529 OutStreamer->emitSymbolAttribute(EmittedSym, MCSA_ELF_TypeObject); in emitGlobalVariable()
554 OutStreamer->emitCommonSymbol(GVSym, Size, in emitGlobalVariable()
570 OutStreamer->emitZerofill(TheSection, GVSym, Size, Alignment.value()); in emitGlobalVariable()
589 OutStreamer->emitLocalCommonSymbol(GVSym, Size, Alignment.value()); in emitGlobalVariable()
594 OutStreamer->emitSymbolAttribute(GVSym, MCSA_Local); in emitGlobalVariable()
598 OutStreamer->emitCommonSymbol(GVSym, Size, in emitGlobalVariable()
620 OutStreamer->emitTBSSSymbol(TheSection, MangSym, Size, Alignment.value()); in emitGlobalVariable()
622 OutStreamer->SwitchSection(TheSection); in emitGlobalVariable()
625 OutStreamer->emitLabel(MangSym); in emitGlobalVariable()
631 OutStreamer->AddBlankLine(); in emitGlobalVariable()
636 OutStreamer->SwitchSection(TLVSect); in emitGlobalVariable()
639 OutStreamer->emitLabel(GVSym); in emitGlobalVariable()
646 OutStreamer->emitSymbolValue(GetExternalSymbolSymbol("_tlv_bootstrap"), in emitGlobalVariable()
648 OutStreamer->emitIntValue(0, PtrSize); in emitGlobalVariable()
649 OutStreamer->emitSymbolValue(MangSym, PtrSize); in emitGlobalVariable()
651 OutStreamer->AddBlankLine(); in emitGlobalVariable()
657 OutStreamer->SwitchSection(TheSection); in emitGlobalVariable()
662 OutStreamer->emitLabel(EmittedInitSym); in emitGlobalVariable()
665 OutStreamer->emitLabel(LocalAlias); in emitGlobalVariable()
671 OutStreamer->emitELFSize(EmittedInitSym, in emitGlobalVariable()
674 OutStreamer->AddBlankLine(); in emitGlobalVariable()
682 OutStreamer->emitValue(Value, Size); in emitDebugValue()
693 OutStreamer->GetCommentOS() in emitFunctionHeader()
702 OutStreamer->SwitchSection(MF->getSection()); in emitFunctionHeader()
715 OutStreamer->emitSymbolAttribute(CurrentFnSym, MCSA_ELF_TypeFunction); in emitFunctionHeader()
718 OutStreamer->emitSymbolAttribute(CurrentFnSym, MCSA_Cold); in emitFunctionHeader()
721 F.printAsOperand(OutStreamer->GetCommentOS(), in emitFunctionHeader()
724 OutStreamer->GetCommentOS() << '\n'; in emitFunctionHeader()
735 OutStreamer->emitLabel(PrefixSym); in emitFunctionHeader()
740 OutStreamer->emitSymbolAttribute(CurrentFnSym, MCSA_AltEntry); in emitFunctionHeader()
759 OutStreamer->emitLabel(CurrentPatchableFunctionEntrySym); in emitFunctionHeader()
781 OutStreamer->emitLabel(CurPos); in emitFunctionHeader()
782 OutStreamer->emitAssignment(CurrentFnBegin, in emitFunctionHeader()
785 OutStreamer->emitLabel(CurrentFnBegin); in emitFunctionHeader()
815 OutStreamer->emitLabel(CurrentFnSym); in emitFunctionEntryLabel()
820 OutStreamer->emitLabel(Sym); in emitFunctionEntryLabel()
861 OutStreamer->AddComment(OS.str()); in emitImplicitDef()
862 OutStreamer->AddBlankLine(); in emitImplicitDef()
875 AP.OutStreamer->AddComment(OS.str()); in emitKill()
876 AP.OutStreamer->AddBlankLine(); in emitKill()
957 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugValueComment()
969 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugValueComment()
994 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugLabelComment()
1044 OutStreamer->emitAssignment(FrameAllocSym, in emitFrameAlloc()
1070 OutStreamer->PushSection(); in emitBBAddrMapSection()
1071 OutStreamer->SwitchSection(BBAddrMapSection); in emitBBAddrMapSection()
1072 OutStreamer->emitSymbolValue(FunctionSymbol, getPointerSize()); in emitBBAddrMapSection()
1074 OutStreamer->emitULEB128IntValue(MF.size()); in emitBBAddrMapSection()
1084 OutStreamer->emitULEB128IntValue(getBBAddrMapMetadata(MBB)); in emitBBAddrMapSection()
1086 OutStreamer->PopSection(); in emitBBAddrMapSection()
1103 OutStreamer->PushSection(); in emitStackSizeSection()
1104 OutStreamer->SwitchSection(StackSizeSection); in emitStackSizeSection()
1108 OutStreamer->emitSymbolValue(FunctionSymbol, TM.getProgramPointerSize()); in emitStackSizeSection()
1109 OutStreamer->emitULEB128IntValue(StackSize); in emitStackSizeSection()
1111 OutStreamer->PopSection(); in emitStackSizeSection()
1172 OutStreamer->emitLabel(S); in emitFunctionBody()
1181 emitComments(MI, OutStreamer->GetCommentOS()); in emitFunctionBody()
1193 OutStreamer->emitLabel(MI.getOperand(0).getMCSymbol()); in emitFunctionBody()
1227 auto Name = OutStreamer->getMnemonic(MCI); in emitFunctionBody()
1236 OutStreamer->emitLabel(S); in emitFunctionBody()
1252 OutStreamer->emitLabel(MBB.getEndSymbol()); in emitFunctionBody()
1264 OutStreamer->emitELFSize(CurrentSectionBeginSym, SizeExp); in emitFunctionBody()
1328 OutStreamer->AddComment("avoids zero-length function"); in emitFunctionBody()
1334 OutStreamer->SwitchSection(MF->getSection()); in emitFunctionBody()
1343 OutStreamer->AddComment("Address of block that was removed by CodeGen"); in emitFunctionBody()
1344 OutStreamer->emitLabel(Sym); in emitFunctionBody()
1354 OutStreamer->emitLabel(CurrentFnEnd); in emitFunctionBody()
1365 OutStreamer->emitELFSize(CurrentFnSym, SizeExp); in emitFunctionBody()
1398 OutStreamer->GetCommentOS() << "-- End function\n"; in emitFunctionBody()
1400 OutStreamer->AddBlankLine(); in emitFunctionBody()
1512 OutStreamer->emitSymbolAttribute(Name, MCSA_Global); in emitGlobalIndirectSymbol()
1514 OutStreamer->emitSymbolAttribute(Name, MCSA_WeakReference); in emitGlobalIndirectSymbol()
1521 OutStreamer->emitSymbolAttribute(Name, isa<GlobalIFunc>(GIS) in emitGlobalIndirectSymbol()
1530 OutStreamer->emitSymbolAttribute(Name, MCSA_AltEntry); in emitGlobalIndirectSymbol()
1533 OutStreamer->emitAssignment(Name, Expr); in emitGlobalIndirectSymbol()
1536 OutStreamer->emitAssignment(LocalAlias, Expr); in emitGlobalIndirectSymbol()
1549 OutStreamer->emitELFSize(Name, MCConstantExpr::create(Size, OutContext)); in emitGlobalIndirectSymbol()
1577 OutStreamer->SwitchSection(RemarksSection); in emitRemarksSection()
1579 OutStreamer->emitBinaryData(OS.str()); in emitRemarksSection()
1640 TLOF.emitModuleMetadata(*OutStreamer, M); in doFinalization()
1648 OutStreamer->SwitchSection(TLOF.getDataSection()); in doFinalization()
1653 OutStreamer->emitLabel(Stub.first); in doFinalization()
1654 OutStreamer->emitSymbolValue(Stub.second.getPointer(), in doFinalization()
1672 OutStreamer->SwitchSection(OutContext.getCOFFSection( in doFinalization()
1679 OutStreamer->emitSymbolAttribute(Stub.first, MCSA_Global); in doFinalization()
1680 OutStreamer->emitLabel(Stub.first); in doFinalization()
1681 OutStreamer->emitSymbolValue(Stub.second.getPointer(), in doFinalization()
1711 OutStreamer->emitSymbolAttribute(getSymbol(&GO), MCSA_WeakReference); in doFinalization()
1753 OutStreamer->SwitchSection(ReadOnlySection); in doFinalization()
1757 OutStreamer->emitLabel(AddrSymbol); in doFinalization()
1760 OutStreamer->emitSymbolValue(GetExternalSymbolSymbol("__morestack"), in doFinalization()
1767 OutStreamer->SwitchSection( in doFinalization()
1770 OutStreamer->SwitchSection( in doFinalization()
1779 OutStreamer->SwitchSection(S); in doFinalization()
1783 OutStreamer->emitAddrsig(); in doFinalization()
1788 OutStreamer->emitAddrsigSym(getSymbol(&GV)); in doFinalization()
1799 OutStreamer->SwitchSection( in doFinalization()
1802 OutStreamer->emitBytes(GV.getPartition()); in doFinalization()
1803 OutStreamer->emitZeros(1); in doFinalization()
1804 OutStreamer->emitValue( in doFinalization()
1816 OutStreamer->Finish(); in doFinalization()
1817 OutStreamer->reset(); in doFinalization()
1939 OutStreamer->SwitchSection(CPSections[i].S); in emitConstantPool()
1949 OutStreamer->emitZeros(NewOffset - Offset); in emitConstantPool()
1954 OutStreamer->emitLabel(Sym); in emitConstantPool()
1983 OutStreamer->SwitchSection(ReadOnlySection); in emitJumpTableInfo()
1991 OutStreamer->emitDataRegion(MCDR_DataRegionJT32); in emitJumpTableInfo()
2014 OutStreamer->emitAssignment(GetJTSetSymbol(JTI, MBB->getNumber()), in emitJumpTableInfo()
2028 OutStreamer->emitLabel(GetJTISymbol(JTI, true)); in emitJumpTableInfo()
2031 OutStreamer->emitLabel(JTISymbol); in emitJumpTableInfo()
2037 OutStreamer->emitDataRegion(MCDR_DataRegionEnd); in emitJumpTableInfo()
2064 OutStreamer->emitGPRel32Value(MCSymbolRefExpr::create(MBBSym, OutContext)); in emitJumpTableEntry()
2073 OutStreamer->emitGPRel64Value(MCSymbolRefExpr::create(MBBSym, OutContext)); in emitJumpTableEntry()
2101 OutStreamer->emitValue(Value, EntrySize); in emitJumpTableEntry()
2148 OutStreamer->emitSymbolAttribute(getSymbol(GV), MCSA_NoDeadStrip); in emitLLVMUsedList()
2215 OutStreamer->SwitchSection(OutputSection); in emitXXStructorList()
2216 if (OutStreamer->getCurrentSection() != OutStreamer->getPreviousSection()) in emitXXStructorList()
2232 OutStreamer->emitIdent(S->getString()); in emitModuleIdents()
2246 OutStreamer->PushSection(); in emitModuleCommandLines()
2247 OutStreamer->SwitchSection(CommandLine); in emitModuleCommandLines()
2248 OutStreamer->emitZeros(1); in emitModuleCommandLines()
2254 OutStreamer->emitBytes(S->getString()); in emitModuleCommandLines()
2255 OutStreamer->emitZeros(1); in emitModuleCommandLines()
2257 OutStreamer->PopSection(); in emitModuleCommandLines()
2266 void AsmPrinter::emitInt8(int Value) const { OutStreamer->emitInt8(Value); } in emitInt8()
2269 void AsmPrinter::emitInt16(int Value) const { OutStreamer->emitInt16(Value); } in emitInt16()
2272 void AsmPrinter::emitInt32(int Value) const { OutStreamer->emitInt32(Value); } in emitInt32()
2276 OutStreamer->emitInt64(Value); in emitInt64()
2284 OutStreamer->emitAbsoluteSymbolDiff(Hi, Lo, Size); in emitLabelDifference()
2294 OutStreamer->EmitCOFFSecRel32(Label, Offset); in emitLabelPlusOffset()
2296 OutStreamer->emitZeros(Size - 4); in emitLabelPlusOffset()
2306 OutStreamer->emitValue(Expr, Size); in emitLabelPlusOffset()
2323 OutStreamer->emitCodeAlignment(Alignment.value()); in emitAlignment()
2325 OutStreamer->emitValueToAlignment(Alignment.value()); in emitAlignment()
2570 return AP.OutStreamer->emitFill(Bytes, Value); in emitGlobalConstantDataSequential()
2575 return AP.OutStreamer->emitBytes(CDS->getAsString()); in emitGlobalConstantDataSequential()
2582 AP.OutStreamer->GetCommentOS() << format("0x%" PRIx64 "\n", in emitGlobalConstantDataSequential()
2584 AP.OutStreamer->emitIntValue(CDS->getElementAsInteger(i), in emitGlobalConstantDataSequential()
2598 AP.OutStreamer->emitZeros(Padding); in emitGlobalConstantDataSequential()
2610 AP.OutStreamer->emitFill(Bytes, Value); in emitGlobalConstantArray()
2629 AP.OutStreamer->emitZeros(Padding); in emitGlobalConstantVector()
2654 AP.OutStreamer->emitZeros(PadSize); in emitGlobalConstantStruct()
2669 ET->print(AP.OutStreamer->GetCommentOS()); in emitGlobalConstantFP()
2670 AP.OutStreamer->GetCommentOS() << ' ' << StrVal << '\n'; in emitGlobalConstantFP()
2686 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk--], TrailingBytes); in emitGlobalConstantFP()
2689 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], sizeof(uint64_t)); in emitGlobalConstantFP()
2693 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], sizeof(uint64_t)); in emitGlobalConstantFP()
2696 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], TrailingBytes); in emitGlobalConstantFP()
2701 AP.OutStreamer->emitZeros(DL.getTypeAllocSize(ET) - DL.getTypeStoreSize(ET)); in emitGlobalConstantFP()
2749 AP.OutStreamer->emitIntValue(Val, 8); in emitGlobalConstantLargeInt()
2761 AP.OutStreamer->emitIntValue(ExtraBits, Size); in emitGlobalConstantLargeInt()
2848 FinalGV, FinalSym, MV, Offset, AP.MMI, *AP.OutStreamer); in handleIndirectSymViaGOTPCRel()
2868 return AP.OutStreamer->emitZeros(Size); in emitGlobalConstantImpl()
2875 AP.OutStreamer->GetCommentOS() << format("0x%" PRIx64 "\n", in emitGlobalConstantImpl()
2877 AP.OutStreamer->emitIntValue(CI->getZExtValue(), StoreSize); in emitGlobalConstantImpl()
2884 AP.OutStreamer->emitZeros(Size - StoreSize); in emitGlobalConstantImpl()
2893 AP.OutStreamer->emitIntValue(0, Size); in emitGlobalConstantImpl()
2935 AP.OutStreamer->emitValue(ME, Size); in emitGlobalConstantImpl()
2946 OutStreamer->emitIntValue(0, 1); in emitGlobalConstant()
2966 EmitToStreamer(*OutStreamer, Nop); in emitNops()
3000 OutStreamer->emitSymbolAttribute(Sym, MCSA_Global); in GetCPISymbol()
3078 AP.OutStreamer->AddComment(" in Loop: Header=BB" + in emitBasicBlockLoopComments()
3087 raw_ostream &OS = AP.OutStreamer->GetCommentOS(); in emitBasicBlockLoopComments()
3123 OutStreamer->SwitchSection( in emitBasicBlockStart()
3136 OutStreamer->AddComment("Block address taken"); in emitBasicBlockStart()
3142 OutStreamer->emitLabel(Sym); in emitBasicBlockStart()
3149 BB->printAsOperand(OutStreamer->GetCommentOS(), in emitBasicBlockStart()
3151 OutStreamer->GetCommentOS() << '\n'; in emitBasicBlockStart()
3162 OutStreamer->AddComment("Label of block must be emitted"); in emitBasicBlockStart()
3163 OutStreamer->emitLabel(MBB.getSymbol()); in emitBasicBlockStart()
3167 OutStreamer->emitRawComment(" %bb." + Twine(MBB.getNumber()) + ":", in emitBasicBlockStart()
3206 OutStreamer->emitSymbolAttribute(Sym, Attr); in emitVisibility()
3334 auto PrevSection = OutStreamer->getCurrentSectionOnly(); in emitXRayTable()
3373 OutStreamer->SwitchSection(InstMap); in emitXRayTable()
3374 OutStreamer->emitLabel(SledsStart); in emitXRayTable()
3377 OutStreamer->emitLabel(Dot); in emitXRayTable()
3378 OutStreamer->emitValueImpl( in emitXRayTable()
3382 OutStreamer->emitValueImpl( in emitXRayTable()
3390 Sled.emit(WordSizeBytes, OutStreamer.get()); in emitXRayTable()
3393 OutStreamer->emitLabel(SledsEnd); in emitXRayTable()
3400 OutStreamer->SwitchSection(FnSledIndex); in emitXRayTable()
3401 OutStreamer->emitCodeAlignment(2 * WordSizeBytes); in emitXRayTable()
3402 OutStreamer->emitSymbolValue(SledsStart, WordSizeBytes, false); in emitXRayTable()
3403 OutStreamer->emitSymbolValue(SledsEnd, WordSizeBytes, false); in emitXRayTable()
3404 OutStreamer->SwitchSection(PrevSection); in emitXRayTable()
3449 OutStreamer->SwitchSection(OutContext.getELFSection( in emitPatchableFunctionEntries()
3453 OutStreamer->emitSymbolValue(CurrentPatchableFunctionEntrySym, PointerSize); in emitPatchableFunctionEntries()
3458 return OutStreamer->getContext().getDwarfVersion(); in getDwarfVersion()
3462 OutStreamer->getContext().setDwarfVersion(Version); in setDwarfVersion()
3466 return OutStreamer->getContext().getDwarfFormat() == dwarf::DWARF64; in isDwarf64()
3471 OutStreamer->getContext().getDwarfFormat()); in getDwarfOffsetByteSize()
3476 OutStreamer->getContext().getDwarfFormat()); in getUnitLengthFieldByteSize()