LLVM API Documentation

Public Member Functions
llvm::NVPTXSection Class Reference

#include <NVPTXSection.h>

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

List of all members.

Public Member Functions

 NVPTXSection (SectionVariant V, SectionKind K)
virtual ~NVPTXSection ()
void PrintSwitchToSection (const MCAsmInfo &MAI, raw_ostream &OS, const MCExpr *Subsection) const override
bool isBaseAddressKnownZero () const override
 Base address of PTX sections is zero.
bool UseCodeAlign () const override
bool isVirtualSection () const override
std::string getLabelBeginName () const override
std::string getLabelEndName () const override

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

Definition at line 29 of file NVPTXSection.h.

virtual llvm::NVPTXSection::~NVPTXSection ( ) [inline, virtual]

Definition at line 30 of file NVPTXSection.h.


Member Function Documentation

std::string llvm::NVPTXSection::getLabelBeginName ( ) const [inline, override, virtual]

Implements llvm::MCSection.

Definition at line 42 of file NVPTXSection.h.

std::string llvm::NVPTXSection::getLabelEndName ( ) const [inline, override, virtual]

Implements llvm::MCSection.

Definition at line 43 of file NVPTXSection.h.

bool llvm::NVPTXSection::isBaseAddressKnownZero ( ) const [inline, override, virtual]

Base address of PTX sections is zero.

Reimplemented from llvm::MCSection.

Definition at line 39 of file NVPTXSection.h.

bool llvm::NVPTXSection::isVirtualSection ( ) const [inline, override, virtual]

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

Implements llvm::MCSection.

Definition at line 41 of file NVPTXSection.h.

void llvm::NVPTXSection::PrintSwitchToSection ( const MCAsmInfo MAI,
raw_ostream OS,
const MCExpr Subsection 
) const [inline, override, virtual]

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 [inline, override, virtual]

Implements llvm::MCSection.

Definition at line 40 of file NVPTXSection.h.


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