LLVM  7.0.0
Public Member Functions | List of all members
llvm::X86_64MachoTargetObjectFile Class Reference

X86_64MachoTargetObjectFile - This TLOF implementation is used for Darwin x86-64. More...

#include "Target/X86/X86TargetObjectFile.h"

Inheritance diagram for llvm::X86_64MachoTargetObjectFile:
[legend]
Collaboration diagram for llvm::X86_64MachoTargetObjectFile:
[legend]

Public Member Functions

const MCExpr * getTTypeGlobalReference (const GlobalValue *GV, unsigned Encoding, const TargetMachine &TM, MachineModuleInfo *MMI, MCStreamer &Streamer) const override
 The mach-o version of this method defaults to returning a stub reference. More...
 
MCSymbol * getCFIPersonalitySymbol (const GlobalValue *GV, const TargetMachine &TM, MachineModuleInfo *MMI) const override
 
const MCExpr * getIndirectSymViaGOTPCRel (const MCSymbol *Sym, const MCValue &MV, int64_t Offset, MachineModuleInfo *MMI, MCStreamer &Streamer) const override
 Get MachO PC relative GOT entry relocation. More...
 
- Public Member Functions inherited from llvm::TargetLoweringObjectFileMachO
 TargetLoweringObjectFileMachO ()
 
 ~TargetLoweringObjectFileMachO () override=default
 
void Initialize (MCContext &Ctx, const TargetMachine &TM) override
 This method must be called before any actual lowering is done. More...
 
void emitModuleMetadata (MCStreamer &Streamer, Module &M) const override
 Emit the module flags that specify the garbage collection information. More...
 
MCSection * SelectSectionForGlobal (const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const override
 
MCSection * getExplicitSectionGlobal (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. More...
 
MCSection * getSectionForConstant (const DataLayout &DL, SectionKind Kind, const Constant *C, unsigned &Align) const override
 Given a constant with the SectionKind, return a section that it should be placed in. More...
 
void getNameWithPrefix (SmallVectorImpl< char > &OutName, const GlobalValue *GV, const TargetMachine &TM) const override
 
- Public Member Functions inherited from llvm::TargetLoweringObjectFile
 TargetLoweringObjectFile ()=default
 
 TargetLoweringObjectFile (const TargetLoweringObjectFile &)=delete
 
TargetLoweringObjectFile & operator= (const TargetLoweringObjectFile &)=delete
 
virtual ~TargetLoweringObjectFile ()
 
MCContext & getContext () const
 
Mangler & getMangler () const
 
virtual void emitPersonalityValue (MCStreamer &Streamer, const DataLayout &TM, const MCSymbol *Sym) const
 
MCSection * SectionForGlobal (const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const
 This method computes the appropriate section to emit the specified global variable or function definition. More...
 
MCSection * SectionForGlobal (const GlobalObject *GO, const TargetMachine &TM) const
 This method computes the appropriate section to emit the specified global variable or function definition. More...
 
virtual MCSection * getSectionForJumpTable (const Function &F, const TargetMachine &TM) const
 
virtual bool shouldPutJumpTableInFunctionSection (bool UsesLabelDifference, const Function &F) const
 
MCSymbol * getSymbolWithGlobalValueBase (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. More...
 
const MCExpr * getTTypeReference (const MCSymbolRefExpr *Sym, unsigned Encoding, MCStreamer &Streamer) const
 
virtual MCSection * getStaticCtorSection (unsigned Priority, const MCSymbol *KeySym) const
 
virtual MCSection * getStaticDtorSection (unsigned Priority, const MCSymbol *KeySym) const
 
virtual const MCExpr * getDebugThreadLocalSymbol (const MCSymbol *Sym) const
 Create a symbol reference to describe the given TLS variable when emitting the address in debug info. More...
 
virtual const MCExpr * lowerRelativeReference (const GlobalValue *LHS, const GlobalValue *RHS, 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? More...
 
bool supportGOTPCRelWithOffset () const
 Target GOT "PC"-relative relocation supports encoding an additional binary expression with an offset? More...
 
virtual void emitLinkerFlagsForGlobal (raw_ostream &OS, const GlobalValue *GV) const
 
virtual void emitLinkerFlagsForUsed (raw_ostream &OS, const GlobalValue *GV) const
 
- Public Member Functions inherited from llvm::MCObjectFileInfo
void InitMCObjectFileInfo (const Triple &TT, bool PIC, MCContext &ctx, bool LargeCodeModel=false)
 
bool getSupportsWeakOmittedEHFrame () const
 
bool getSupportsCompactUnwindWithoutEHFrame () const
 
bool getOmitDwarfIfHaveCompactUnwind () const
 
bool getCommDirectiveSupportsAlignment () const
 
unsigned getPersonalityEncoding () const
 
unsigned getLSDAEncoding () const
 
unsigned getFDEEncoding () const
 
unsigned getTTypeEncoding () const
 
unsigned getCompactUnwindDwarfEHFrameOnly () const
 
MCSection * getTextSection () const
 
MCSection * getDataSection () const
 
MCSection * getBSSSection () const
 
MCSection * getReadOnlySection () const
 
MCSection * getLSDASection () const
 
MCSection * getCompactUnwindSection () const
 
MCSection * getDwarfAbbrevSection () const
 
MCSection * getDwarfInfoSection () const
 
MCSection * getDwarfLineSection () const
 
MCSection * getDwarfLineStrSection () const
 
MCSection * getDwarfFrameSection () const
 
MCSection * getDwarfPubNamesSection () const
 
MCSection * getDwarfPubTypesSection () const
 
MCSection * getDwarfGnuPubNamesSection () const
 
MCSection * getDwarfGnuPubTypesSection () const
 
const MCSection * getDwarfDebugInlineSection () const
 
MCSection * getDwarfStrSection () const
 
MCSection * getDwarfLocSection () const
 
MCSection * getDwarfARangesSection () const
 
MCSection * getDwarfRangesSection () const
 
MCSection * getDwarfRnglistsSection () const
 
MCSection * getDwarfMacinfoSection () const
 
MCSection * getDwarfDebugNamesSection () const
 
MCSection * getDwarfAccelNamesSection () const
 
MCSection * getDwarfAccelObjCSection () const
 
MCSection * getDwarfAccelNamespaceSection () const
 
MCSection * getDwarfAccelTypesSection () const
 
MCSection * getDwarfInfoDWOSection () const
 
MCSection * getDwarfTypesSection (uint64_t Hash) const
 
MCSection * getDwarfTypesDWOSection () const
 
MCSection * getDwarfAbbrevDWOSection () const
 
MCSection * getDwarfStrDWOSection () const
 
MCSection * getDwarfLineDWOSection () const
 
MCSection * getDwarfLocDWOSection () const
 
MCSection * getDwarfStrOffDWOSection () const
 
MCSection * getDwarfStrOffSection () const
 
MCSection * getDwarfAddrSection () const
 
MCSection * getDwarfRnglistsDWOSection () const
 
MCSection * getDwarfCUIndexSection () const
 
MCSection * getDwarfTUIndexSection () const
 
MCSection * getDwarfSwiftASTSection () const
 
MCSection * getCOFFDebugSymbolsSection () const
 
MCSection * getCOFFDebugTypesSection () const
 
MCSection * getCOFFGlobalTypeHashesSection () const
 
MCSection * getTLSExtraDataSection () const
 
const MCSection * getTLSDataSection () const
 
MCSection * getTLSBSSSection () const
 
MCSection * getStackMapSection () const
 
MCSection * getFaultMapSection () const
 
MCSection * getStackSizesSection (const MCSection &TextSec) const
 
MCSection * getDataRelROSection () const
 
const MCSection * getMergeableConst4Section () const
 
const MCSection * getMergeableConst8Section () const
 
const MCSection * getMergeableConst16Section () const
 
const MCSection * getMergeableConst32Section () const
 
const MCSection * getTLSTLVSection () const
 
const MCSection * getTLSThreadInitSection () const
 
const MCSection * getCStringSection () const
 
const MCSection * getUStringSection () const
 
MCSection * getTextCoalSection () const
 
const MCSection * getConstTextCoalSection () const
 
const MCSection * getConstDataSection () const
 
const MCSection * getDataCoalSection () const
 
const MCSection * getConstDataCoalSection () const
 
const MCSection * getDataCommonSection () const
 
MCSection * getDataBSSSection () const
 
const MCSection * getFourByteConstantSection () const
 
const MCSection * getEightByteConstantSection () const
 
const MCSection * getSixteenByteConstantSection () const
 
MCSection * getLazySymbolPointerSection () const
 
MCSection * getNonLazySymbolPointerSection () const
 
MCSection * getThreadLocalPointerSection () const
 
MCSection * getDrectveSection () const
 
MCSection * getPDataSection () const
 
MCSection * getXDataSection () const
 
MCSection * getSXDataSection () const
 
MCSection * getGFIDsSection () const
 
MCSection * getEHFrameSection ()
 
Environment getObjectFileType () const
 
bool isPositionIndependent () const
 
const Triple & getTargetTriple () const
 

Additional Inherited Members

- Public Types inherited from llvm::MCObjectFileInfo
enum  Environment { IsMachO, IsELF, IsCOFF, IsWasm }
 
- 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. More...
 
- Protected Attributes inherited from llvm::TargetLoweringObjectFile
bool SupportIndirectSymViaGOTPCRel = false
 
bool SupportGOTPCRelWithOffset = true
 
MCSection * StaticCtorSection = nullptr
 This section contains the static constructor pointer list. More...
 
MCSection * StaticDtorSection = nullptr
 This section contains the static destructor pointer list. More...
 
- Protected Attributes inherited from llvm::MCObjectFileInfo
bool CommDirectiveSupportsAlignment
 True if .comm supports alignment. More...
 
bool SupportsWeakOmittedEHFrame
 True if target object file supports a weak_definition of constant 0 for an omitted EH frame. More...
 
bool SupportsCompactUnwindWithoutEHFrame
 True if the target object file supports emitting a compact unwind section without an associated EH frame section. More...
 
bool OmitDwarfIfHaveCompactUnwind
 OmitDwarfIfHaveCompactUnwind - True if the target object file supports having some functions with compact unwind and other with dwarf unwind. More...
 
unsigned PersonalityEncoding
 PersonalityEncoding, LSDAEncoding, TTypeEncoding - Some encoding values for EH. More...
 
unsigned LSDAEncoding
 
unsigned FDECFIEncoding
 
unsigned TTypeEncoding
 
unsigned CompactUnwindDwarfEHFrameOnly
 Compact unwind encoding indicating that we should emit only an EH frame. More...
 
MCSection * TextSection
 Section directive for standard text. More...
 
MCSection * DataSection
 Section directive for standard data. More...
 
MCSection * BSSSection
 Section that is default initialized to zero. More...
 
MCSection * ReadOnlySection
 Section that is readonly and can contain arbitrary initialized data. More...
 
MCSection * LSDASection
 If exception handling is supported by the target, this is the section the Language Specific Data Area information is emitted to. More...
 
MCSection * CompactUnwindSection
 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. More...
 
MCSection * DwarfAbbrevSection
 
MCSection * DwarfInfoSection
 
MCSection * DwarfLineSection
 
MCSection * DwarfLineStrSection
 
MCSection * DwarfFrameSection
 
MCSection * DwarfPubTypesSection
 
const MCSection * DwarfDebugInlineSection
 
MCSection * DwarfStrSection
 
MCSection * DwarfLocSection
 
MCSection * DwarfARangesSection
 
MCSection * DwarfRangesSection
 
MCSection * DwarfMacinfoSection
 
MCSection * DwarfPubNamesSection
 
MCSection * DwarfDebugNamesSection
 Accelerator table sections. More...
 
MCSection * DwarfAccelNamesSection
 
MCSection * DwarfAccelObjCSection
 
MCSection * DwarfAccelNamespaceSection
 
MCSection * DwarfAccelTypesSection
 
MCSection * DwarfInfoDWOSection
 
MCSection * DwarfTypesDWOSection
 
MCSection * DwarfAbbrevDWOSection
 
MCSection * DwarfStrDWOSection
 
MCSection * DwarfLineDWOSection
 
MCSection * DwarfLocDWOSection
 
MCSection * DwarfStrOffDWOSection
 
MCSection * DwarfStrOffSection
 The DWARF v5 string offset and address table sections. More...
 
MCSection * DwarfAddrSection
 
MCSection * DwarfRnglistsSection
 The DWARF v5 range list section. More...
 
MCSection * DwarfRnglistsDWOSection
 The DWARF v5 range list section for fission. More...
 
MCSection * DwarfCUIndexSection
 
MCSection * DwarfTUIndexSection
 
MCSection * DwarfGnuPubNamesSection
 Section for newer gnu pubnames. More...
 
MCSection * DwarfGnuPubTypesSection
 Section for newer gnu pubtypes. More...
 
MCSection * DwarfSwiftASTSection
 
MCSection * COFFDebugSymbolsSection
 
MCSection * COFFDebugTypesSection
 
MCSection * COFFGlobalTypeHashesSection
 
MCSection * TLSExtraDataSection
 Extra TLS Variable Data section. More...
 
MCSection * TLSDataSection
 Section directive for Thread Local data. ELF, MachO, COFF, and Wasm. More...
 
MCSection * TLSBSSSection
 Section directive for Thread Local uninitialized data. More...
 
MCSection * StackMapSection
 StackMap section. More...
 
MCSection * FaultMapSection
 FaultMap section. More...
 
MCSection * EHFrameSection
 EH frame section. More...
 
MCSection * StackSizesSection
 Section containing metadata on function stack sizes. More...
 
DenseMap< const MCSymbol *, unsigned > StackSizesUniquing
 
MCSection * DataRelROSection
 
MCSection * MergeableConst4Section
 
MCSection * MergeableConst8Section
 
MCSection * MergeableConst16Section
 
MCSection * MergeableConst32Section
 
MCSection * TLSTLVSection
 Section for thread local structure information. More...
 
const MCSection * TLSThreadInitSection
 Section for thread local data initialization functions. More...
 
MCSection * CStringSection
 
MCSection * UStringSection
 
MCSection * TextCoalSection
 
MCSection * ConstTextCoalSection
 
MCSection * ConstDataSection
 
MCSection * DataCoalSection
 
MCSection * ConstDataCoalSection
 
MCSection * DataCommonSection
 
MCSection * DataBSSSection
 
MCSection * FourByteConstantSection
 
MCSection * EightByteConstantSection
 
MCSection * SixteenByteConstantSection
 
MCSection * LazySymbolPointerSection
 
MCSection * NonLazySymbolPointerSection
 
MCSection * ThreadLocalPointerSection
 
MCSection * DrectveSection
 COFF specific sections. More...
 
MCSection * PDataSection
 
MCSection * XDataSection
 
MCSection * SXDataSection
 
MCSection * GFIDsSection
 

Detailed Description

X86_64MachoTargetObjectFile - This TLOF implementation is used for Darwin x86-64.

Definition at line 20 of file X86TargetObjectFile.h.

Member Function Documentation

◆ getCFIPersonalitySymbol()

MCSymbol * X86_64MachoTargetObjectFile::getCFIPersonalitySymbol ( const GlobalValue *  GV,
const TargetMachine &  TM,
MachineModuleInfo *  MMI 
) const
overridevirtual

Reimplemented from llvm::TargetLoweringObjectFileMachO.

Definition at line 44 of file X86TargetObjectFile.cpp.

References llvm::TargetMachine::getSymbol().

◆ getIndirectSymViaGOTPCRel()

const MCExpr * X86_64MachoTargetObjectFile::getIndirectSymViaGOTPCRel ( const MCSymbol *  Sym,
const MCValue &  MV,
int64_t  Offset,
MachineModuleInfo *  MMI,
MCStreamer &  Streamer 
) const
overridevirtual

◆ getTTypeGlobalReference()

const MCExpr * X86_64MachoTargetObjectFile::getTTypeGlobalReference ( const GlobalValue *  GV,
unsigned  Encoding,
const TargetMachine &  TM,
MachineModuleInfo *  MMI,
MCStreamer &  Streamer 
) const
overridevirtual

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