LLVM 22.0.0git
llvm::RISCVMCObjectFileInfo Class Reference

#include "Target/RISCV/MCTargetDesc/RISCVMCObjectFileInfo.h"

Inheritance diagram for llvm::RISCVMCObjectFileInfo:
[legend]

Public Member Functions

unsigned getTextSectionAlignment () const override
Public Member Functions inherited from llvm::MCObjectFileInfo
void initMCObjectFileInfo (MCContext &MCCtx, bool PIC, bool LargeCodeModel=false)
virtual ~MCObjectFileInfo ()
MCContextgetContext () const
bool getSupportsWeakOmittedEHFrame () const
bool getSupportsCompactUnwindWithoutEHFrame () const
bool getOmitDwarfIfHaveCompactUnwind () const
unsigned getFDEEncoding () const
unsigned getCompactUnwindDwarfEHFrameOnly () const
std::optional< sframe::ABIgetSFrameABIArch () const
MCSectiongetTextSection () const
MCSectiongetDataSection () const
MCSectiongetBSSSection () const
MCSectiongetReadOnlySection () const
MCSectiongetLSDASection () const
MCSectiongetImportCallSection () const
MCSectiongetCompactUnwindSection () const
MCSectiongetDwarfAbbrevSection () const
MCSectiongetDwarfInfoSection () const
MCSectiongetDwarfInfoSection (uint64_t Hash) const
MCSectiongetDwarfLineSection () const
MCSectiongetDwarfLineStrSection () const
MCSectiongetDwarfFrameSection () const
MCSectiongetDwarfPubNamesSection () const
MCSectiongetDwarfPubTypesSection () const
MCSectiongetDwarfGnuPubNamesSection () const
MCSectiongetDwarfGnuPubTypesSection () const
const MCSectiongetDwarfDebugInlineSection () const
MCSectiongetDwarfStrSection () const
MCSectiongetDwarfLocSection () const
MCSectiongetDwarfARangesSection () const
MCSectiongetDwarfRangesSection () const
MCSectiongetDwarfRnglistsSection () const
MCSectiongetDwarfLoclistsSection () const
MCSectiongetDwarfMacinfoSection () const
MCSectiongetDwarfMacroSection () const
MCSectiongetDwarfDebugNamesSection () const
MCSectiongetDwarfAccelNamesSection () const
MCSectiongetDwarfAccelObjCSection () const
MCSectiongetDwarfAccelNamespaceSection () const
MCSectiongetDwarfAccelTypesSection () const
MCSectiongetDwarfInfoDWOSection () const
MCSectiongetDwarfTypesSection (uint64_t Hash) const
MCSectiongetDwarfTypesDWOSection () const
MCSectiongetDwarfAbbrevDWOSection () const
MCSectiongetDwarfStrDWOSection () const
MCSectiongetDwarfLineDWOSection () const
MCSectiongetDwarfLocDWOSection () const
MCSectiongetDwarfStrOffDWOSection () const
MCSectiongetDwarfStrOffSection () const
MCSectiongetDwarfAddrSection () const
MCSectiongetDwarfRnglistsDWOSection () const
MCSectiongetDwarfLoclistsDWOSection () const
MCSectiongetDwarfMacroDWOSection () const
MCSectiongetDwarfMacinfoDWOSection () const
MCSectiongetDwarfCUIndexSection () const
MCSectiongetDwarfTUIndexSection () const
MCSectiongetDwarfSwiftASTSection () const
MCSectiongetCOFFDebugSymbolsSection () const
MCSectiongetCOFFDebugTypesSection () const
MCSectiongetCOFFGlobalTypeHashesSection () const
MCSectiongetTLSExtraDataSection () const
const MCSectiongetTLSDataSection () const
MCSectiongetTLSBSSSection () const
MCSectiongetStackMapSection () const
MCSectiongetFaultMapSection () const
MCSectiongetRemarksSection () const
MCSectiongetCallGraphSection (const MCSection &TextSec) const
MCSectiongetStackSizesSection (const MCSection &TextSec) const
MCSectiongetBBAddrMapSection (const MCSection &TextSec) const
MCSectiongetKCFITrapSection (const MCSection &TextSec) const
MCSectiongetPseudoProbeSection (const MCSection &TextSec) const
MCSectiongetPseudoProbeDescSection (StringRef FuncName) const
MCSectiongetLLVMStatsSection () const
MCSectiongetPCSection (StringRef Name, const MCSection *TextSec) const
MCSectiongetDataRelROSection () const
const MCSectiongetMergeableConst4Section () const
const MCSectiongetMergeableConst8Section () const
const MCSectiongetMergeableConst16Section () const
const MCSectiongetMergeableConst32Section () const
const MCSectiongetTLSTLVSection () const
const MCSectiongetTLSThreadInitSection () const
const MCSectiongetCStringSection () const
const MCSectiongetUStringSection () const
MCSectiongetTextCoalSection () const
const MCSectiongetConstTextCoalSection () const
const MCSectiongetConstDataSection () const
const MCSectiongetDataCoalSection () const
const MCSectiongetConstDataCoalSection () const
const MCSectiongetDataCommonSection () const
MCSectiongetDataBSSSection () const
const MCSectiongetFourByteConstantSection () const
const MCSectiongetEightByteConstantSection () const
const MCSectiongetSixteenByteConstantSection () const
MCSectiongetLazySymbolPointerSection () const
MCSectiongetNonLazySymbolPointerSection () const
MCSectiongetThreadLocalPointerSection () const
MCSectiongetAddrSigSection () const
MCSectiongetDrectveSection () const
MCSectiongetPDataSection () const
MCSectiongetXDataSection () const
MCSectiongetSXDataSection () const
MCSectiongetGEHContSection () const
MCSectiongetGFIDsSection () const
MCSectiongetGIATsSection () const
MCSectiongetGLJMPSection () const
MCSectiongetPPA2ListSection () const
MCSectiongetADASection () const
MCSectiongetIDRLSection () const
MCSectiongetTOCBaseSection () const
MCSectiongetEHFrameSection () const
MCSectiongetSFrameSection () const
bool isPositionIndependent () const
MCSectiongetSwift5ReflectionSection (llvm::binaryformat::Swift5ReflectionSectionKind ReflSectionKind)

Static Public Member Functions

static unsigned getTextSectionAlignment (const MCSubtargetInfo &STI)

Additional Inherited Members

Protected Attributes inherited from llvm::MCObjectFileInfo
bool SupportsWeakOmittedEHFrame = false
 True if target object file supports a weak_definition of constant 0 for an omitted EH frame.
bool SupportsCompactUnwindWithoutEHFrame = false
 True if the target object file supports emitting a compact unwind section without an associated EH frame section.
bool OmitDwarfIfHaveCompactUnwind = false
 OmitDwarfIfHaveCompactUnwind - True if the target object file supports having some functions with compact unwind and other with dwarf unwind.
unsigned FDECFIEncoding = 0
 FDE CFI encoding.
unsigned CompactUnwindDwarfEHFrameOnly = 0
 Compact unwind encoding indicating that we should emit only an EH frame.
std::optional< sframe::ABISFrameABIArch = {}
 SFrame ABI architecture byte.
MCSectionTextSection = nullptr
 Section directive for standard text.
MCSectionDataSection = nullptr
 Section directive for standard data.
MCSectionBSSSection = nullptr
 Section that is default initialized to zero.
MCSectionReadOnlySection = nullptr
 Section that is readonly and can contain arbitrary initialized data.
MCSectionLSDASection = nullptr
 If exception handling is supported by the target, this is the section the Language Specific Data Area information is emitted to.
MCSectionCallGraphSection = nullptr
 Section containing call graph metadata.
MCSectionCompactUnwindSection = nullptr
 If exception handling is supported by the target and the target can support a compact representation of the CIE and FDE, this is the section to emit them into.
MCSectionImportCallSection = nullptr
 If import call optimization is supported by the target, this is the section to emit import call data to.
MCSectionDwarfAbbrevSection = nullptr
MCSectionDwarfInfoSection = nullptr
MCSectionDwarfLineSection = nullptr
MCSectionDwarfLineStrSection = nullptr
MCSectionDwarfFrameSection = nullptr
MCSectionDwarfPubTypesSection = nullptr
const MCSectionDwarfDebugInlineSection = nullptr
MCSectionDwarfStrSection = nullptr
MCSectionDwarfLocSection = nullptr
MCSectionDwarfARangesSection = nullptr
MCSectionDwarfRangesSection = nullptr
MCSectionDwarfMacinfoSection = nullptr
MCSectionDwarfMacroSection = nullptr
MCSectionDwarfPubNamesSection = nullptr
MCSectionDwarfDebugNamesSection = nullptr
 Accelerator table sections.
MCSectionDwarfAccelNamesSection = nullptr
MCSectionDwarfAccelObjCSection = nullptr
MCSectionDwarfAccelNamespaceSection = nullptr
MCSectionDwarfAccelTypesSection = nullptr
MCSectionDwarfInfoDWOSection = nullptr
MCSectionDwarfTypesDWOSection = nullptr
MCSectionDwarfAbbrevDWOSection = nullptr
MCSectionDwarfStrDWOSection = nullptr
MCSectionDwarfLineDWOSection = nullptr
MCSectionDwarfLocDWOSection = nullptr
MCSectionDwarfStrOffDWOSection = nullptr
MCSectionDwarfMacinfoDWOSection = nullptr
MCSectionDwarfMacroDWOSection = nullptr
MCSectionDwarfStrOffSection = nullptr
 The DWARF v5 string offset and address table sections.
MCSectionDwarfAddrSection = nullptr
MCSectionDwarfRnglistsSection = nullptr
 The DWARF v5 range list section.
MCSectionDwarfLoclistsSection = nullptr
 The DWARF v5 locations list section.
MCSectionDwarfRnglistsDWOSection = nullptr
 The DWARF v5 range and location list sections for fission.
MCSectionDwarfLoclistsDWOSection = nullptr
MCSectionDwarfCUIndexSection = nullptr
MCSectionDwarfTUIndexSection = nullptr
MCSectionDwarfGnuPubNamesSection = nullptr
 Section for newer gnu pubnames.
MCSectionDwarfGnuPubTypesSection = nullptr
 Section for newer gnu pubtypes.
MCSectionDwarfSwiftASTSection = nullptr
MCSectionCOFFDebugSymbolsSection = nullptr
MCSectionCOFFDebugTypesSection = nullptr
MCSectionCOFFGlobalTypeHashesSection = nullptr
MCSectionTLSExtraDataSection = nullptr
 Extra TLS Variable Data section.
MCSectionTLSDataSection = nullptr
 Section directive for Thread Local data. ELF, MachO, COFF, and Wasm.
MCSectionTLSBSSSection = nullptr
 Section directive for Thread Local uninitialized data.
MCSectionStackMapSection = nullptr
 StackMap section.
MCSectionFaultMapSection = nullptr
 FaultMap section.
MCSectionRemarksSection = nullptr
 Remarks section.
MCSectionEHFrameSection = nullptr
 EH frame section.
MCSectionSFrameSection = nullptr
 SFrame section.
MCSectionStackSizesSection = nullptr
 Section containing metadata on function stack sizes.
MCSectionPseudoProbeSection = nullptr
 Section for pseudo probe information used by AutoFDO.
MCSectionPseudoProbeDescSection = nullptr
MCSectionLLVMStatsSection = nullptr
MCSectionDataRelROSection = nullptr
MCSectionMergeableConst4Section = nullptr
MCSectionMergeableConst8Section = nullptr
MCSectionMergeableConst16Section = nullptr
MCSectionMergeableConst32Section = nullptr
MCSectionTLSTLVSection = nullptr
 Section for thread local structure information.
const MCSectionTLSThreadInitSection = nullptr
 Section for thread local data initialization functions.
MCSectionCStringSection = nullptr
MCSectionUStringSection = nullptr
MCSectionTextCoalSection = nullptr
MCSectionConstTextCoalSection = nullptr
MCSectionConstDataSection = nullptr
MCSectionDataCoalSection = nullptr
MCSectionConstDataCoalSection = nullptr
MCSectionDataCommonSection = nullptr
MCSectionDataBSSSection = nullptr
MCSectionFourByteConstantSection = nullptr
MCSectionEightByteConstantSection = nullptr
MCSectionSixteenByteConstantSection = nullptr
MCSectionLazySymbolPointerSection = nullptr
MCSectionNonLazySymbolPointerSection = nullptr
MCSectionThreadLocalPointerSection = nullptr
MCSectionAddrSigSection = nullptr
MCSectionDrectveSection = nullptr
 COFF specific sections.
MCSectionPDataSection = nullptr
MCSectionXDataSection = nullptr
MCSectionSXDataSection = nullptr
MCSectionGEHContSection = nullptr
MCSectionGFIDsSection = nullptr
MCSectionGIATsSection = nullptr
MCSectionGLJMPSection = nullptr
MCSectionPPA2ListSection = nullptr
MCSectionADASection = nullptr
MCSectionIDRLSection = nullptr
MCSectionTOCBaseSection = nullptr
MCSectionReadOnly8Section = nullptr
MCSectionReadOnly16Section = nullptr
std::array< MCSection *, binaryformat::Swift5ReflectionSectionKind::lastSwift5ReflectionSections = {}

Detailed Description

Definition at line 21 of file RISCVMCObjectFileInfo.h.

Member Function Documentation

◆ getTextSectionAlignment() [1/2]

unsigned RISCVMCObjectFileInfo::getTextSectionAlignment ( ) const
overridevirtual

◆ getTextSectionAlignment() [2/2]

unsigned RISCVMCObjectFileInfo::getTextSectionAlignment ( const MCSubtargetInfo & STI)
static

Definition at line 21 of file RISCVMCObjectFileInfo.cpp.

References llvm::MCSubtargetInfo::hasFeature().


The documentation for this class was generated from the following files: