LLVM  3.7.0
Public Member Functions | List of all members
llvm::WebAssemblyTargetObjectFile Class Referencefinal

#include <WebAssemblyTargetObjectFile.h>

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

Public Member Functions

 WebAssemblyTargetObjectFile ()
 
MCSectiongetSectionForConstant (SectionKind Kind, const Constant *C) const override
 Given a constant with the SectionKind, return a section that it should be placed in. More...
 
MCSectiongetExplicitSectionGlobal (const GlobalValue *GV, SectionKind Kind, Mangler &Mang, const TargetMachine &TM) const override
 Targets should implement this method to assign a section to globals with an explicit section specfied. More...
 
MCSectionSelectSectionForGlobal (const GlobalValue *GV, SectionKind Kind, Mangler &Mang, const TargetMachine &TM) const override
 
- Public Member Functions inherited from llvm::TargetLoweringObjectFile
MCContextgetContext () const
 
 TargetLoweringObjectFile ()
 
virtual ~TargetLoweringObjectFile ()
 
virtual void Initialize (MCContext &ctx, const TargetMachine &TM)
 This method must be called before any actual lowering is done. More...
 
virtual void emitPersonalityValue (MCStreamer &Streamer, const TargetMachine &TM, const MCSymbol *Sym) const
 
virtual void emitModuleFlags (MCStreamer &Streamer, ArrayRef< Module::ModuleFlagEntry > Flags, Mangler &Mang, const TargetMachine &TM) const
 Emit the module flags that the platform cares about. More...
 
MCSectionSectionForGlobal (const GlobalValue *GV, SectionKind Kind, Mangler &Mang, const TargetMachine &TM) const
 This method computes the appropriate section to emit the specified global variable or function definition. More...
 
MCSectionSectionForGlobal (const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM) const
 This method computes the appropriate section to emit the specified global variable or function definition. More...
 
virtual void getNameWithPrefix (SmallVectorImpl< char > &OutName, const GlobalValue *GV, bool CannotUsePrivateLabel, Mangler &Mang, const TargetMachine &TM) const
 
virtual MCSectiongetSectionForJumpTable (const Function &F, Mangler &Mang, const TargetMachine &TM) const
 
virtual bool shouldPutJumpTableInFunctionSection (bool UsesLabelDifference, const Function &F) const
 
virtual const MCSectiongetSpecialCasedSectionGlobals (const GlobalValue *GV, SectionKind Kind, Mangler &Mang) const
 Allow the target to completely override section assignment of a global. More...
 
virtual const MCExprgetTTypeGlobalReference (const GlobalValue *GV, unsigned Encoding, Mangler &Mang, 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. More...
 
MCSymbolgetSymbolWithGlobalValueBase (const GlobalValue *GV, StringRef Suffix, Mangler &Mang, const TargetMachine &TM) const
 Return the MCSymbol for a private symbol with global value name as its base, with the specified suffix. More...
 
virtual MCSymbolgetCFIPersonalitySymbol (const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM, MachineModuleInfo *MMI) const
 
const MCExprgetTTypeReference (const MCSymbolRefExpr *Sym, unsigned Encoding, MCStreamer &Streamer) const
 
virtual MCSectiongetStaticCtorSection (unsigned Priority, const MCSymbol *KeySym) const
 
virtual MCSectiongetStaticDtorSection (unsigned Priority, const MCSymbol *KeySym) 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. More...
 
virtual const MCExprgetExecutableRelativeSymbol (const ConstantExpr *CE, Mangler &Mang, 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 const MCExprgetIndirectSymViaGOTPCRel (const MCSymbol *Sym, const MCValue &MV, int64_t Offset, MachineModuleInfo *MMI, MCStreamer &Streamer) const
 Get the target specific PC relative GOT entry relocation. More...
 
virtual void emitLinkerFlagsForGlobal (raw_ostream &OS, const GlobalValue *GV, const Mangler &Mang) const
 
- Public Member Functions inherited from llvm::MCObjectFileInfo
void InitMCObjectFileInfo (const Triple &TT, Reloc::Model RM, CodeModel::Model CM, MCContext &ctx)
 
 LLVM_ATTRIBUTE_DEPRECATED (void InitMCObjectFileInfo(StringRef TT, Reloc::Model RM, CodeModel::Model CM, MCContext &ctx),"StringRef GNU Triple argument replaced by a llvm::Triple object")
 
bool getSupportsWeakOmittedEHFrame () const
 
bool getSupportsCompactUnwindWithoutEHFrame () const
 
bool getCommDirectiveSupportsAlignment () const
 
unsigned getPersonalityEncoding () const
 
unsigned getLSDAEncoding () const
 
unsigned getFDEEncoding () const
 
unsigned getTTypeEncoding () const
 
unsigned getCompactUnwindDwarfEHFrameOnly () const
 
MCSectiongetTextSection () const
 
MCSectiongetDataSection () const
 
MCSectiongetBSSSection () const
 
MCSectiongetLSDASection () const
 
MCSectiongetCompactUnwindSection () const
 
MCSectiongetDwarfAbbrevSection () const
 
MCSectiongetDwarfInfoSection () const
 
MCSectiongetDwarfLineSection () const
 
MCSectiongetDwarfFrameSection () const
 
MCSectiongetDwarfPubNamesSection () const
 
MCSectiongetDwarfPubTypesSection () const
 
MCSectiongetDwarfGnuPubNamesSection () const
 
MCSectiongetDwarfGnuPubTypesSection () const
 
const MCSectiongetDwarfDebugInlineSection () const
 
MCSectiongetDwarfStrSection () const
 
MCSectiongetDwarfLocSection () const
 
MCSectiongetDwarfARangesSection () const
 
MCSectiongetDwarfRangesSection () 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
 
MCSectiongetDwarfAddrSection () const
 
MCSectiongetCOFFDebugSymbolsSection () const
 
MCSectiongetTLSExtraDataSection () const
 
const MCSectiongetTLSDataSection () const
 
MCSectiongetTLSBSSSection () const
 
MCSectiongetStackMapSection () const
 
MCSectiongetFaultMapSection () const
 
MCSectiongetDataRelSection () const
 
const MCSectiongetDataRelLocalSection () const
 
MCSectiongetDataRelROSection () const
 
MCSectiongetDataRelROLocalSection () const
 
const MCSectiongetMergeableConst4Section () const
 
const MCSectiongetMergeableConst8Section () const
 
const MCSectiongetMergeableConst16Section () 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 MCSectiongetDataCommonSection () const
 
MCSectiongetDataBSSSection () const
 
const MCSectiongetFourByteConstantSection () const
 
const MCSectiongetEightByteConstantSection () const
 
const MCSectiongetSixteenByteConstantSection () const
 
MCSectiongetLazySymbolPointerSection () const
 
MCSectiongetNonLazySymbolPointerSection () const
 
MCSectiongetDrectveSection () const
 
MCSectiongetPDataSection () const
 
MCSectiongetXDataSection () const
 
MCSectiongetSXDataSection () const
 
MCSectiongetEHFrameSection ()
 
Environment getObjectFileType () const
 
Reloc::Model getRelocM () const
 
const TriplegetTargetTriple () const
 

Additional Inherited Members

- Public Types inherited from llvm::MCObjectFileInfo
enum  Environment { IsMachO, IsELF, IsCOFF }
 
- Static Public Member Functions inherited from llvm::TargetLoweringObjectFile
static SectionKind getKindForGlobal (const GlobalValue *GV, 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
const DataLayoutDL
 
bool SupportIndirectSymViaGOTPCRel
 
bool SupportGOTPCRelWithOffset
 
- 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...
 
unsigned PersonalityEncoding
 Some encoding values for EH. More...
 
unsigned LSDAEncoding
 
unsigned FDECFIEncoding
 
unsigned TTypeEncoding
 
unsigned EHSectionType
 Section flags for eh_frame. More...
 
unsigned EHSectionFlags
 
unsigned CompactUnwindDwarfEHFrameOnly
 Compact unwind encoding indicating that we should emit only an EH frame. More...
 
MCSectionTextSection
 Section directive for standard text. More...
 
MCSectionDataSection
 Section directive for standard data. More...
 
MCSectionBSSSection
 Section that is default initialized to zero. More...
 
MCSectionReadOnlySection
 Section that is readonly and can contain arbitrary initialized data. More...
 
MCSectionStaticCtorSection
 This section contains the static constructor pointer list. More...
 
MCSectionStaticDtorSection
 This section contains the static destructor pointer list. More...
 
MCSectionLSDASection
 If exception handling is supported by the target, this is the section the Language Specific Data Area information is emitted to. More...
 
MCSectionCompactUnwindSection
 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...
 
MCSectionDwarfAbbrevSection
 
MCSectionDwarfInfoSection
 
MCSectionDwarfLineSection
 
MCSectionDwarfFrameSection
 
MCSectionDwarfPubTypesSection
 
const MCSectionDwarfDebugInlineSection
 
MCSectionDwarfStrSection
 
MCSectionDwarfLocSection
 
MCSectionDwarfARangesSection
 
MCSectionDwarfRangesSection
 
MCSectionDwarfPubNamesSection
 
MCSectionDwarfAccelNamesSection
 DWARF5 Experimental Debug Info Sections DwarfAccelNamesSection, DwarfAccelObjCSection, DwarfAccelNamespaceSection, DwarfAccelTypesSection - If we use the DWARF accelerated hash tables then we want to emit these sections. More...
 
MCSectionDwarfAccelObjCSection
 
MCSectionDwarfAccelNamespaceSection
 
MCSectionDwarfAccelTypesSection
 
MCSectionDwarfInfoDWOSection
 
MCSectionDwarfTypesDWOSection
 
MCSectionDwarfAbbrevDWOSection
 
MCSectionDwarfStrDWOSection
 
MCSectionDwarfLineDWOSection
 
MCSectionDwarfLocDWOSection
 
MCSectionDwarfStrOffDWOSection
 
MCSectionDwarfAddrSection
 
MCSectionDwarfGnuPubNamesSection
 Section for newer gnu pubnames. More...
 
MCSectionDwarfGnuPubTypesSection
 Section for newer gnu pubtypes. More...
 
MCSectionCOFFDebugSymbolsSection
 
MCSectionTLSExtraDataSection
 Extra TLS Variable Data section. More...
 
MCSectionTLSDataSection
 Section directive for Thread Local data. ELF, MachO and COFF. More...
 
MCSectionTLSBSSSection
 Section directive for Thread Local uninitialized data. More...
 
MCSectionStackMapSection
 StackMap section. More...
 
MCSectionFaultMapSection
 FaultMap section. More...
 
MCSectionEHFrameSection
 EH frame section. More...
 
MCSectionDataRelSection
 
const MCSectionDataRelLocalSection
 
MCSectionDataRelROSection
 
MCSectionDataRelROLocalSection
 
MCSectionMergeableConst4Section
 
MCSectionMergeableConst8Section
 
MCSectionMergeableConst16Section
 
MCSectionTLSTLVSection
 Section for thread local structure information. More...
 
const MCSectionTLSThreadInitSection
 Section for thread local data initialization functions. More...
 
MCSectionCStringSection
 
MCSectionUStringSection
 
MCSectionTextCoalSection
 
MCSectionConstTextCoalSection
 
MCSectionConstDataSection
 
MCSectionDataCoalSection
 
MCSectionDataCommonSection
 
MCSectionDataBSSSection
 
MCSectionFourByteConstantSection
 
MCSectionEightByteConstantSection
 
MCSectionSixteenByteConstantSection
 
MCSectionLazySymbolPointerSection
 
MCSectionNonLazySymbolPointerSection
 
MCSectionDrectveSection
 COFF specific sections. More...
 
MCSectionPDataSection
 
MCSectionXDataSection
 
MCSectionSXDataSection
 

Detailed Description

Definition at line 25 of file WebAssemblyTargetObjectFile.h.

Constructor & Destructor Documentation

llvm::WebAssemblyTargetObjectFile::WebAssemblyTargetObjectFile ( )
inline

Member Function Documentation

MCSection* llvm::WebAssemblyTargetObjectFile::getExplicitSectionGlobal ( const GlobalValue GV,
SectionKind  Kind,
Mangler Mang,
const TargetMachine TM 
) const
inlineoverridevirtual

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

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

Implements llvm::TargetLoweringObjectFile.

Definition at line 54 of file WebAssemblyTargetObjectFile.h.

References llvm::MCObjectFileInfo::DataSection.

MCSection* llvm::WebAssemblyTargetObjectFile::getSectionForConstant ( SectionKind  Kind,
const Constant C 
) const
inlineoverridevirtual

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

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

Reimplemented from llvm::TargetLoweringObjectFile.

Definition at line 49 of file WebAssemblyTargetObjectFile.h.

References llvm::MCObjectFileInfo::ReadOnlySection.

MCSection * WebAssemblyTargetObjectFile::SelectSectionForGlobal ( const GlobalValue GV,
SectionKind  Kind,
Mangler Mang,
const TargetMachine TM 
) const
overridevirtual

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