LLVM  8.0.1
Public Member Functions | Static Public Member Functions | Friends | List of all members
llvm::MCSectionWasm Class Referencefinal

This represents a section on wasm. More...

#include "llvm/MC/MCSectionWasm.h"

Inheritance diagram for llvm::MCSectionWasm:
Inheritance graph
[legend]
Collaboration diagram for llvm::MCSectionWasm:
Collaboration graph
[legend]

Public Member Functions

 ~MCSectionWasm ()
 
bool ShouldOmitSectionDirective (StringRef Name, const MCAsmInfo &MAI) const
 Decides whether a '.section' directive should be printed before the section name. More...
 
StringRef getSectionName () const
 
const MCSymbolWasmgetGroup () const
 
void PrintSwitchToSection (const MCAsmInfo &MAI, const Triple &T, raw_ostream &OS, const MCExpr *Subsection) const override
 
bool UseCodeAlign () const override
 Return true if a .align directive should use "optimized nops" to fill instead of 0s. More...
 
bool isVirtualSection () const override
 Check whether this section is "virtual", that is has no actual object file contents. More...
 
bool isWasmData () const
 
bool isUnique () const
 
unsigned getUniqueID () const
 
uint64_t getSectionOffset () const
 
void setSectionOffset (uint64_t Offset)
 
uint32_t getSegmentIndex () const
 
void setSegmentIndex (uint32_t Index)
 
- Public Member Functions inherited from llvm::MCSection
 MCSection (const MCSection &)=delete
 
MCSectionoperator= (const MCSection &)=delete
 
SectionKind getKind () const
 
SectionVariant getVariant () const
 
MCSymbolgetBeginSymbol ()
 
const MCSymbolgetBeginSymbol () const
 
void setBeginSymbol (MCSymbol *Sym)
 
MCSymbolgetEndSymbol (MCContext &Ctx)
 
bool hasEnded () const
 
unsigned getAlignment () const
 
void setAlignment (unsigned Value)
 
unsigned getOrdinal () const
 
void setOrdinal (unsigned Value)
 
unsigned getLayoutOrder () const
 
void setLayoutOrder (unsigned Value)
 
BundleLockStateType getBundleLockState () const
 
void setBundleLockState (BundleLockStateType NewState)
 
bool isBundleLocked () const
 
bool isBundleGroupBeforeFirstInst () const
 
void setBundleGroupBeforeFirstInst (bool IsFirst)
 
bool hasInstructions () const
 
void setHasInstructions (bool Value)
 
bool hasData () const
 
void setHasData (bool Value)
 
bool isRegistered () const
 
void setIsRegistered (bool Value)
 
MCSection::FragmentListTypegetFragmentList ()
 
const MCSection::FragmentListTypegetFragmentList () const
 
const MCDummyFragmentgetDummyFragment () const
 
MCDummyFragmentgetDummyFragment ()
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
MCSection::iterator getSubsectionInsertionPoint (unsigned Subsection)
 
void dump () const
 

Static Public Member Functions

static bool classof (const MCSection *S)
 
- Static Public Member Functions inherited from llvm::MCSection
static FragmentListType MCSection::* getSublistAccess (MCFragment *)
 Support for MCFragment::getNextNode(). More...
 

Friends

class MCContext
 

Additional Inherited Members

- Public Types inherited from llvm::MCSection
enum  SectionVariant { SV_COFF = 0, SV_ELF, SV_MachO, SV_Wasm }
 
enum  BundleLockStateType { NotBundleLocked, BundleLocked, BundleLockedAlignToEnd }
 Express the state of bundle locked groups while emitting code. More...
 
using FragmentListType = iplist< MCFragment >
 
using const_iterator = FragmentListType::const_iterator
 
using iterator = FragmentListType::iterator
 
using const_reverse_iterator = FragmentListType::const_reverse_iterator
 
using reverse_iterator = FragmentListType::reverse_iterator
 
- Protected Member Functions inherited from llvm::MCSection
 MCSection (SectionVariant V, SectionKind K, MCSymbol *Begin)
 
 ~MCSection ()
 
- Protected Attributes inherited from llvm::MCSection
SectionVariant Variant
 
SectionKind Kind
 

Detailed Description

This represents a section on wasm.

Definition at line 28 of file MCSectionWasm.h.

Constructor & Destructor Documentation

◆ ~MCSectionWasm()

MCSectionWasm::~MCSectionWasm ( )

Definition at line 18 of file MCSectionWasm.cpp.

Member Function Documentation

◆ classof()

static bool llvm::MCSectionWasm::classof ( const MCSection S)
inlinestatic

Definition at line 83 of file MCSectionWasm.h.

References llvm::MCSection::getVariant(), and llvm::MCSection::SV_Wasm.

◆ getGroup()

const MCSymbolWasm* llvm::MCSectionWasm::getGroup ( ) const
inline

Definition at line 62 of file MCSectionWasm.h.

References isVirtualSection(), PrintSwitchToSection(), and UseCodeAlign().

◆ getSectionName()

StringRef llvm::MCSectionWasm::getSectionName ( ) const
inline

Definition at line 61 of file MCSectionWasm.h.

References AMDGPU::ElfNote::SectionName.

Referenced by addData(), and PrintSwitchToSection().

◆ getSectionOffset()

uint64_t llvm::MCSectionWasm::getSectionOffset ( ) const
inline

Definition at line 77 of file MCSectionWasm.h.

◆ getSegmentIndex()

uint32_t llvm::MCSectionWasm::getSegmentIndex ( ) const
inline

Definition at line 80 of file MCSectionWasm.h.

◆ getUniqueID()

unsigned llvm::MCSectionWasm::getUniqueID ( ) const
inline

Definition at line 75 of file MCSectionWasm.h.

◆ isUnique()

bool llvm::MCSectionWasm::isUnique ( ) const
inline

Definition at line 74 of file MCSectionWasm.h.

Referenced by PrintSwitchToSection().

◆ isVirtualSection()

bool MCSectionWasm::isVirtualSection ( ) const
overridevirtual

Check whether this section is "virtual", that is has no actual object file contents.

Implements llvm::MCSection.

Definition at line 96 of file MCSectionWasm.cpp.

Referenced by getGroup().

◆ isWasmData()

bool llvm::MCSectionWasm::isWasmData ( ) const
inline

◆ PrintSwitchToSection()

void MCSectionWasm::PrintSwitchToSection ( const MCAsmInfo MAI,
const Triple T,
raw_ostream OS,
const MCExpr Subsection 
) const
overridevirtual

◆ setSectionOffset()

void llvm::MCSectionWasm::setSectionOffset ( uint64_t  Offset)
inline

Definition at line 78 of file MCSectionWasm.h.

◆ setSegmentIndex()

void llvm::MCSectionWasm::setSegmentIndex ( uint32_t  Index)
inline

Definition at line 81 of file MCSectionWasm.h.

◆ ShouldOmitSectionDirective()

bool MCSectionWasm::ShouldOmitSectionDirective ( StringRef  Name,
const MCAsmInfo MAI 
) const

Decides whether a '.section' directive should be printed before the section name.

Definition at line 22 of file MCSectionWasm.cpp.

References llvm::MCAsmInfo::shouldOmitSectionDirective().

Referenced by PrintSwitchToSection().

◆ UseCodeAlign()

bool MCSectionWasm::UseCodeAlign ( ) const
overridevirtual

Return true if a .align directive should use "optimized nops" to fill instead of 0s.

Implements llvm::MCSection.

Definition at line 94 of file MCSectionWasm.cpp.

Referenced by getGroup().

Friends And Related Function Documentation

◆ MCContext

friend class MCContext
friend

Definition at line 46 of file MCSectionWasm.h.


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