LLVM  3.7.0
Public Member Functions | List of all members
llvm::NVPTXSection Class Reference

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

#include <NVPTXSection.h>

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

Public Member Functions

 NVPTXSection (SectionVariant V, SectionKind K)
 
virtual ~NVPTXSection ()
 
void PrintSwitchToSection (const MCAsmInfo &MAI, 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
virtual ~MCSection ()
 
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
 
MCSection::iterator begin ()
 
MCSection::const_iterator begin () const
 
MCSection::iterator end ()
 
MCSection::const_iterator end () const
 
MCSection::reverse_iterator rbegin ()
 
MCSection::const_reverse_iterator rbegin () const
 
MCSection::reverse_iterator rend ()
 
MCSection::const_reverse_iterator rend () const
 
MCSection::iterator getSubsectionInsertionPoint (unsigned Subsection)
 
void dump ()
 

Additional Inherited Members

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

Detailed Description

NVPTXSection - Represents a section in PTX PTX does not have sections.

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

Definition at line 26 of file NVPTXSection.h.

Constructor & Destructor Documentation

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

Definition at line 29 of file NVPTXSection.h.

virtual llvm::NVPTXSection::~NVPTXSection ( )
inlinevirtual

Definition at line 30 of file NVPTXSection.h.

Member Function Documentation

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.

void llvm::NVPTXSection::PrintSwitchToSection ( const MCAsmInfo MAI,
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.

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: