LLVM  6.0.0svn
Public Member Functions | List of all members
llvm::NVPTXSection Class Referencefinal

Represents a section in PTX PTX does not have sections. More...

#include "Target/NVPTX/NVPTXSection.h"

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

Public Member Functions

 NVPTXSection (SectionVariant V, SectionKind K)
 
 ~NVPTXSection ()=default
 
void PrintSwitchToSection (const MCAsmInfo &MAI, const Triple &T, raw_ostream &OS, const MCExpr *Subsection) const override
 Override this as NVPTX has its own way of printing switching to a section. More...
 
bool UseCodeAlign () const override
 Base address of PTX sections is zero. More...
 
bool isVirtualSection () const override
 Check whether this section is "virtual", that is has no actual object file contents. More...
 
- 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 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
 

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
 
- Static Public Member Functions inherited from llvm::MCSection
static FragmentListType MCSection::* getSublistAccess (MCFragment *)
 Support for MCFragment::getNextNode(). More...
 
- 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

Represents a section in PTX PTX does not have sections.

We create this class in order to use the ASMPrint interface.

Definition at line 25 of file NVPTXSection.h.

Constructor & Destructor Documentation

◆ NVPTXSection()

llvm::NVPTXSection::NVPTXSection ( SectionVariant  V,
SectionKind  K 
)
inline

Definition at line 29 of file NVPTXSection.h.

References ~NVPTXSection().

◆ ~NVPTXSection()

llvm::NVPTXSection::~NVPTXSection ( )
default

Referenced by NVPTXSection().

Member Function Documentation

◆ isVirtualSection()

bool llvm::NVPTXSection::isVirtualSection ( ) const
inlineoverridevirtual

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

Implements llvm::MCSection.

Definition at line 40 of file NVPTXSection.h.

◆ PrintSwitchToSection()

void llvm::NVPTXSection::PrintSwitchToSection ( const MCAsmInfo MAI,
const Triple T,
raw_ostream OS,
const MCExpr Subsection 
) const
inlineoverridevirtual

Override this as NVPTX has its own way of printing switching to a section.

Implements llvm::MCSection.

Definition at line 34 of file NVPTXSection.h.

◆ UseCodeAlign()

bool llvm::NVPTXSection::UseCodeAlign ( ) const
inlineoverridevirtual

Base address of PTX sections is zero.

Implements llvm::MCSection.

Definition at line 39 of file NVPTXSection.h.


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