LLVM  5.0.0
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:
[legend]
Collaboration diagram for llvm::MCSectionWasm:
[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
 
unsigned getType () const
 
unsigned getFlags () const
 
void setFlags (unsigned F)
 
const MCSymbolWasm * getGroup () 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 isUnique () const
 
unsigned getUniqueID () const
 
uint64_t getSectionOffset () const
 
void setSectionOffset (uint64_t Offset)
 
- Public Member Functions inherited from llvm::MCSection
 MCSection (const MCSection &)=delete
 
MCSection & operator= (const MCSection &)=delete
 
SectionKind getKind () const
 
SectionVariant getVariant () const
 
MCSymbol * getBeginSymbol ()
 
const MCSymbol * getBeginSymbol () const
 
void setBeginSymbol (MCSymbol *Sym)
 
MCSymbol * getEndSymbol (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 isRegistered () const
 
void setIsRegistered (bool Value)
 
MCSection::FragmentListType & getFragmentList ()
 
const MCSection::FragmentListType & getFragmentList () const
 
const MCDummyFragment & getDummyFragment () const
 
MCDummyFragment & getDummyFragment ()
 
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 ( )

Definition at line 19 of file MCSectionWasm.cpp.

Member Function Documentation

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.

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

Definition at line 67 of file MCSectionWasm.h.

References Flags.

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

Definition at line 69 of file MCSectionWasm.h.

Referenced by llvm::MCContext::renameWasmSection().

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

Definition at line 80 of file MCSectionWasm.h.

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

Definition at line 66 of file MCSectionWasm.h.

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

Definition at line 78 of file MCSectionWasm.h.

Referenced by llvm::MCContext::renameWasmSection().

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

Definition at line 77 of file MCSectionWasm.h.

Referenced by PrintSwitchToSection().

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 97 of file MCSectionWasm.cpp.

void MCSectionWasm::PrintSwitchToSection ( const MCAsmInfo &  MAI,
const Triple &  T,
raw_ostream &  OS,
const MCExpr *  Subsection 
) const
overridevirtual
void llvm::MCSectionWasm::setFlags ( unsigned  F)
inline

Definition at line 68 of file MCSectionWasm.h.

References F, and Flags.

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

Definition at line 81 of file MCSectionWasm.h.

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

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

Definition at line 23 of file MCSectionWasm.cpp.

References llvm::MCAsmInfo::shouldOmitSectionDirective().

Referenced by PrintSwitchToSection().

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 95 of file MCSectionWasm.cpp.

Friends And Related Function Documentation

friend class MCContext
friend

Definition at line 49 of file MCSectionWasm.h.


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