LLVM 22.0.0git
llvm::TargetLoweringObjectFileXCOFF Class Reference

#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"

Inheritance diagram for llvm::TargetLoweringObjectFileXCOFF:
[legend]

Public Member Functions

 TargetLoweringObjectFileXCOFF ()=default
 ~TargetLoweringObjectFileXCOFF () override=default
void Initialize (MCContext &Ctx, const TargetMachine &TM) override
 This method must be called before any actual lowering is done.
bool shouldPutJumpTableInFunctionSection (bool UsesLabelDifference, const Function &F) const override
MCSectiongetExplicitSectionGlobal (const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const override
 Targets should implement this method to assign a section to globals with an explicit section specfied.
MCSectiongetStaticCtorSection (unsigned Priority, const MCSymbol *KeySym) const override
MCSectiongetStaticDtorSection (unsigned Priority, const MCSymbol *KeySym) const override
MCSectionSelectSectionForGlobal (const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const override
MCSectiongetSectionForJumpTable (const Function &F, const TargetMachine &TM) const override
MCSectiongetSectionForConstant (const DataLayout &DL, SectionKind Kind, const Constant *C, Align &Alignment) const override
 Given a constant with the SectionKind, return a section that it should be placed in.
MCSectiongetSectionForFunctionDescriptor (const Function *F, const TargetMachine &TM) const override
 On targets that use separate function descriptor symbols, return a section for the descriptor given its symbol.
MCSectiongetSectionForTOCEntry (const MCSymbol *Sym, const TargetMachine &TM) const override
 On targets that support TOC entries, return a section for the entry given the symbol it refers to.
MCSectiongetSectionForExternalReference (const GlobalObject *GO, const TargetMachine &TM) const override
 For external functions, this will always return a function descriptor csect.
MCSymbolgetTargetSymbol (const GlobalValue *GV, const TargetMachine &TM) const override
 For functions, this will always return a function descriptor symbol.
MCSymbolgetFunctionEntryPointSymbol (const GlobalValue *Func, const TargetMachine &TM) const override
 If supported, return the function entry point symbol.
MCSectiongetSectionForLSDA (const Function &F, const MCSymbol &FnSym, const TargetMachine &TM) const override
 For functions, this will return the LSDA section.
Public Member Functions inherited from llvm::TargetLoweringObjectFile
 TargetLoweringObjectFile ()=default
 TargetLoweringObjectFile (const TargetLoweringObjectFile &)=delete
TargetLoweringObjectFileoperator= (const TargetLoweringObjectFile &)=delete
virtual ~TargetLoweringObjectFile ()
ManglergetMangler () const
virtual void emitPersonalityValue (MCStreamer &Streamer, const DataLayout &TM, const MCSymbol *Sym, const MachineModuleInfo *MMI) const
virtual void emitModuleMetadata (MCStreamer &Streamer, Module &M) const
 Emit the module-level metadata that the platform cares about.
void emitCGProfileMetadata (MCStreamer &Streamer, Module &M) const
 Emit Call Graph Profile metadata.
void emitPseudoProbeDescMetadata (MCStreamer &Streamer, Module &M, std::function< void(MCStreamer &Streamer)> COMDATSymEmitter=nullptr) const
 Emit pseudo_probe_desc metadata.
virtual void emitLinkerDirectives (MCStreamer &Streamer, Module &M) const
 Process linker options metadata and emit platform-specific bits.
virtual void getModuleMetadata (Module &M)
 Get the module-level metadata that the platform cares about.
virtual MCSectiongetSectionForConstant (const DataLayout &DL, SectionKind Kind, const Constant *C, Align &Alignment, StringRef SectionSuffix) const
 Similar to the function above, but append SectionSuffix to the section name.
virtual MCSectiongetSectionForMachineBasicBlock (const Function &F, const MachineBasicBlock &MBB, const TargetMachine &TM) const
virtual MCSectiongetUniqueSectionForFunction (const Function &F, const TargetMachine &TM) const
MCSectionSectionForGlobal (const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const
 This method computes the appropriate section to emit the specified global variable or function definition.
MCSectionSectionForGlobal (const GlobalObject *GO, const TargetMachine &TM) const
 This method computes the appropriate section to emit the specified global variable or function definition.
virtual void getNameWithPrefix (SmallVectorImpl< char > &OutName, const GlobalValue *GV, const TargetMachine &TM) const
virtual MCSectiongetSectionForJumpTable (const Function &F, const TargetMachine &TM, const MachineJumpTableEntry *JTE) const
virtual const MCExprgetTTypeGlobalReference (const GlobalValue *GV, unsigned Encoding, const TargetMachine &TM, MachineModuleInfo *MMI, MCStreamer &Streamer) const
 Return an MCExpr to use for a reference to the specified global variable from exception handling information.
MCSymbolgetSymbolWithGlobalValueBase (const GlobalValue *GV, StringRef Suffix, const TargetMachine &TM) const
 Return the MCSymbol for a private symbol with global value name as its base, with the specified suffix.
virtual MCSymbolgetCFIPersonalitySymbol (const GlobalValue *GV, const TargetMachine &TM, MachineModuleInfo *MMI) const
unsigned getPersonalityEncoding () const
unsigned getLSDAEncoding () const
unsigned getTTypeEncoding () const
unsigned getCallSiteEncoding () const
const MCExprgetTTypeReference (const MCSymbolRefExpr *Sym, unsigned Encoding, MCStreamer &Streamer) const
virtual const MCExprgetDebugThreadLocalSymbol (const MCSymbol *Sym) const
 Create a symbol reference to describe the given TLS variable when emitting the address in debug info.
virtual const MCExprlowerRelativeReference (const GlobalValue *LHS, const GlobalValue *RHS, int64_t Addend, std::optional< int64_t > PCRelativeOffset, const TargetMachine &TM) const
bool hasPLTPCRelative () const
 Target supports a PC-relative relocation that references the PLT of a function.
virtual const MCExprlowerDSOLocalEquivalent (const MCSymbol *LHS, const MCSymbol *RHS, int64_t Addend, std::optional< int64_t > PCRelativeOffset, const TargetMachine &TM) const
bool supportIndirectSymViaGOTPCRel () const
 Target supports replacing a data "PC"-relative access to a symbol through another symbol, by accessing the later via a GOT entry instead?
bool supportGOTPCRelWithOffset () const
 Target GOT "PC"-relative relocation supports encoding an additional binary expression with an offset?
bool supportDebugThreadLocalLocation () const
 Target supports TLS offset relocation in debug section?
virtual MCRegister getStaticBase () const
 Returns the register used as static base in RWPI variants.
virtual const MCExprgetIndirectSymViaRWPI (const MCSymbol *Sym) const
 Get the target specific RWPI relocation.
virtual const MCExprgetIndirectSymViaGOTPCRel (const GlobalValue *GV, const MCSymbol *Sym, const MCValue &MV, int64_t Offset, MachineModuleInfo *MMI, MCStreamer &Streamer) const
 Get the target specific PC relative GOT entry relocation.
virtual MCSectiongetSectionForCommandLines () const
 If supported, return the section to use for the llvm.commandline metadata.
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
virtual unsigned getTextSectionAlignment () 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 bool ShouldEmitEHBlock (const MachineFunction *MF)
static bool ShouldSetSSPCanaryBitInTB (const MachineFunction *MF)
static MCSymbolgetEHInfoTableSymbol (const MachineFunction *MF)
static XCOFF::StorageClass getStorageClassForGlobal (const GlobalValue *GV)
Static Public Member Functions inherited from llvm::TargetLoweringObjectFile
static SectionKind getKindForGlobal (const GlobalObject *GO, const TargetMachine &TM)
 Classify the specified global variable into a set of target independent categories embodied in SectionKind.

Additional Inherited Members

Protected Attributes inherited from llvm::TargetLoweringObjectFile
bool SupportIndirectSymViaGOTPCRel = false
bool SupportGOTPCRelWithOffset = true
bool SupportDebugThreadLocalLocation = true
uint32_t PLTPCRelativeSpecifier = 0
unsigned PersonalityEncoding = 0
 PersonalityEncoding, LSDAEncoding, TTypeEncoding - Some encoding values for EH.
unsigned LSDAEncoding = 0
unsigned TTypeEncoding = 0
unsigned CallSiteEncoding = 0
MCSectionStaticCtorSection = nullptr
 This section contains the static constructor pointer list.
MCSectionStaticDtorSection = nullptr
 This section contains the static destructor pointer list.
const TargetMachineTM = nullptr
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 254 of file TargetLoweringObjectFileImpl.h.

Constructor & Destructor Documentation

◆ TargetLoweringObjectFileXCOFF()

llvm::TargetLoweringObjectFileXCOFF::TargetLoweringObjectFileXCOFF ( )
default

◆ ~TargetLoweringObjectFileXCOFF()

llvm::TargetLoweringObjectFileXCOFF::~TargetLoweringObjectFileXCOFF ( )
overridedefault

Member Function Documentation

◆ getEHInfoTableSymbol()

MCSymbol * TargetLoweringObjectFileXCOFF::getEHInfoTableSymbol ( const MachineFunction * MF)
static

◆ getExplicitSectionGlobal()

MCSection * TargetLoweringObjectFileXCOFF::getExplicitSectionGlobal ( const GlobalObject * GO,
SectionKind Kind,
const TargetMachine & TM ) const
overridevirtual

Targets should implement this method to assign a section to globals with an explicit section specfied.

The implementation of this method can assume that GO->hasSection() is true.

Implements llvm::TargetLoweringObjectFile.

Definition at line 2429 of file TargetLoweringObjectFileImpl.cpp.

References llvm::dyn_cast(), llvm::MCObjectFileInfo::getContext(), llvm::GlobalObject::getSection(), llvm::MCContext::getXCOFFSection(), llvm::GlobalObject::hasSection(), llvm::report_fatal_error(), llvm::TargetLoweringObjectFile::TM, llvm::XCOFF::XMC_PR, llvm::XCOFF::XMC_RO, llvm::XCOFF::XMC_RW, llvm::XCOFF::XMC_TD, and llvm::XCOFF::XTY_SD.

◆ getFunctionEntryPointSymbol()

MCSymbol * TargetLoweringObjectFileXCOFF::getFunctionEntryPointSymbol ( const GlobalValue * Func,
const TargetMachine & TM ) const
overridevirtual

◆ getSectionForConstant()

MCSection * TargetLoweringObjectFileXCOFF::getSectionForConstant ( const DataLayout & DL,
SectionKind Kind,
const Constant * C,
Align & Alignment ) const
overridevirtual

Given a constant with the SectionKind, return a section that it should be placed in.

Given a mergeable constant with the specified size and relocation information, return a section that it should be placed in.

Reimplemented from llvm::TargetLoweringObjectFile.

Definition at line 2609 of file TargetLoweringObjectFileImpl.cpp.

References assert(), llvm::CallingConv::C, DL, llvm::MCObjectFileInfo::ReadOnly16Section, llvm::MCObjectFileInfo::ReadOnly8Section, llvm::MCObjectFileInfo::ReadOnlySection, and llvm::report_fatal_error().

◆ getSectionForExternalReference()

◆ getSectionForFunctionDescriptor()

MCSection * TargetLoweringObjectFileXCOFF::getSectionForFunctionDescriptor ( const Function * F,
const TargetMachine & TM ) const
overridevirtual

On targets that use separate function descriptor symbols, return a section for the descriptor given its symbol.

Use only with defined functions.

Reimplemented from llvm::TargetLoweringObjectFile.

Definition at line 2715 of file TargetLoweringObjectFileImpl.cpp.

References F, llvm::MCObjectFileInfo::getContext(), llvm::SectionKind::getData(), llvm::TargetLoweringObjectFile::getNameWithPrefix(), llvm::MCContext::getXCOFFSection(), llvm::TargetLoweringObjectFile::TM, llvm::XCOFF::XMC_DS, and llvm::XCOFF::XTY_SD.

Referenced by getTargetSymbol().

◆ getSectionForJumpTable()

◆ getSectionForLSDA()

MCSection * TargetLoweringObjectFileXCOFF::getSectionForLSDA ( const Function & F,
const MCSymbol & FnSym,
const TargetMachine & TM ) const
overridevirtual

For functions, this will return the LSDA section.

If option -ffunction-sections is on, this will return a unique csect with the function name appended to .gcc_except_table as a suffix of the LSDA section name.

Reimplemented from llvm::TargetLoweringObjectFile.

Definition at line 2756 of file TargetLoweringObjectFileImpl.cpp.

References F, llvm::MCObjectFileInfo::getContext(), llvm::MCContext::getXCOFFSection(), llvm::MCObjectFileInfo::LSDASection, and llvm::TargetLoweringObjectFile::TM.

◆ getSectionForTOCEntry()

MCSection * TargetLoweringObjectFileXCOFF::getSectionForTOCEntry ( const MCSymbol * S,
const TargetMachine & TM ) const
overridevirtual

On targets that support TOC entries, return a section for the entry given the symbol it refers to.

TODO: Implement this interface for existing ELF targets.

Reimplemented from llvm::TargetLoweringObjectFile.

Definition at line 2724 of file TargetLoweringObjectFileImpl.cpp.

References llvm::MCSymbolXCOFF::CM_Large, llvm::MCObjectFileInfo::getContext(), llvm::SectionKind::getData(), llvm::MCContext::getXCOFFSection(), llvm::CodeModel::Large, llvm::TargetLoweringObjectFile::TM, llvm::XCOFF::XMC_TC, llvm::XCOFF::XMC_TE, and llvm::XCOFF::XTY_SD.

◆ getStaticCtorSection()

MCSection * TargetLoweringObjectFileXCOFF::getStaticCtorSection ( unsigned Priority,
const MCSymbol * KeySym ) const
overridevirtual

Reimplemented from llvm::TargetLoweringObjectFile.

Definition at line 2648 of file TargetLoweringObjectFileImpl.cpp.

References llvm::report_fatal_error().

◆ getStaticDtorSection()

MCSection * TargetLoweringObjectFileXCOFF::getStaticDtorSection ( unsigned Priority,
const MCSymbol * KeySym ) const
overridevirtual

Reimplemented from llvm::TargetLoweringObjectFile.

Definition at line 2653 of file TargetLoweringObjectFileImpl.cpp.

References llvm::report_fatal_error().

◆ getStorageClassForGlobal()

◆ getTargetSymbol()

◆ Initialize()

void TargetLoweringObjectFileXCOFF::Initialize ( MCContext & ctx,
const TargetMachine & TM )
overridevirtual

◆ SelectSectionForGlobal()

◆ ShouldEmitEHBlock()

◆ shouldPutJumpTableInFunctionSection()

bool TargetLoweringObjectFileXCOFF::shouldPutJumpTableInFunctionSection ( bool UsesLabelDifference,
const Function & F ) const
overridevirtual

Reimplemented from llvm::TargetLoweringObjectFile.

Definition at line 2602 of file TargetLoweringObjectFileImpl.cpp.

References F.

◆ ShouldSetSSPCanaryBitInTB()

bool TargetLoweringObjectFileXCOFF::ShouldSetSSPCanaryBitInTB ( const MachineFunction * MF)
static

Definition at line 2370 of file TargetLoweringObjectFileImpl.cpp.

References F, and llvm::MachineFunction::getFunction().


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