LLVM API Documentation

Public Member Functions
llvm::NVPTXTargetObjectFile Class Reference

#include <NVPTXTargetObjectFile.h>

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

List of all members.

Public Member Functions

 NVPTXTargetObjectFile ()
virtual ~NVPTXTargetObjectFile ()
void Initialize (MCContext &ctx, const TargetMachine &TM) override
const MCSectiongetSectionForConstant (SectionKind Kind, const Constant *C) const override
const MCSectiongetExplicitSectionGlobal (const GlobalValue *GV, SectionKind Kind, Mangler &Mang, const TargetMachine &TM) const override

Detailed Description

Definition at line 21 of file NVPTXTargetObjectFile.h.


Constructor & Destructor Documentation


Member Function Documentation

const MCSection* llvm::NVPTXTargetObjectFile::getExplicitSectionGlobal ( const GlobalValue GV,
SectionKind  Kind,
Mangler Mang,
const TargetMachine TM 
) const [inline, override, virtual]

Targets should implement this method to assign a section to globals with an explicit section specfied. The implementation of this method can assume that GV->hasSection() is true.

Implements llvm::TargetLoweringObjectFile.

Definition at line 95 of file NVPTXTargetObjectFile.h.

References llvm::MCObjectFileInfo::DataSection.

const MCSection* llvm::NVPTXTargetObjectFile::getSectionForConstant ( SectionKind  Kind,
const Constant C 
) const [inline, override, virtual]

Given a constant with the SectionKind, return a section that it should be placed in.

getSectionForConstant - Given a mergable constant with the specified size and relocation information, return a section that it should be placed in.

Reimplemented from llvm::TargetLoweringObjectFile.

Definition at line 90 of file NVPTXTargetObjectFile.h.

References llvm::MCObjectFileInfo::ReadOnlySection.

void llvm::NVPTXTargetObjectFile::Initialize ( MCContext ctx,
const TargetMachine TM 
) [inline, override, virtual]

This method must be called before any actual lowering is done. This specifies the current context for codegen, and gives the lowering implementations a chance to set up their default sections.

Initialize - this method must be called before any actual lowering is done. This specifies the current context for codegen, and gives the lowering implementations a chance to set up their default sections.

Reimplemented from llvm::TargetLoweringObjectFile.

Definition at line 49 of file NVPTXTargetObjectFile.h.

References llvm::MCObjectFileInfo::BSSSection, llvm::MCObjectFileInfo::DataSection, llvm::MCObjectFileInfo::DwarfAbbrevSection, llvm::MCObjectFileInfo::DwarfARangesSection, llvm::MCObjectFileInfo::DwarfDebugInlineSection, llvm::MCObjectFileInfo::DwarfFrameSection, llvm::MCObjectFileInfo::DwarfInfoSection, llvm::MCObjectFileInfo::DwarfLineSection, llvm::MCObjectFileInfo::DwarfLocSection, llvm::MCObjectFileInfo::DwarfMacroInfoSection, llvm::MCObjectFileInfo::DwarfPubTypesSection, llvm::MCObjectFileInfo::DwarfRangesSection, llvm::MCObjectFileInfo::DwarfStrSection, llvm::MCObjectFileInfo::EHFrameSection, llvm::SectionKind::getBSS(), llvm::SectionKind::getDataRel(), llvm::SectionKind::getMetadata(), llvm::SectionKind::getReadOnly(), llvm::SectionKind::getText(), llvm::MCObjectFileInfo::LSDASection, llvm::MCObjectFileInfo::ReadOnlySection, llvm::MCObjectFileInfo::StaticCtorSection, llvm::MCObjectFileInfo::StaticDtorSection, llvm::MCSection::SV_ELF, and llvm::MCObjectFileInfo::TextSection.


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