LLVM  7.0.0svn
Public Member Functions | List of all members
llvm::NVPTXSubtarget Class Reference

#include "Target/NVPTX/NVPTXSubtarget.h"

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

Public Member Functions

 NVPTXSubtarget (const Triple &TT, const std::string &CPU, const std::string &FS, const NVPTXTargetMachine &TM)
 This constructor initializes the data members to match that of the specified module. More...
 
const TargetFrameLoweringgetFrameLowering () const override
 
const NVPTXInstrInfogetInstrInfo () const override
 
const NVPTXRegisterInfogetRegisterInfo () const override
 
const NVPTXTargetLoweringgetTargetLowering () const override
 
const SelectionDAGTargetInfogetSelectionDAGInfo () const override
 
bool hasAtomAddF64 () const
 
bool hasAtomScope () const
 
bool hasAtomBitwise64 () const
 
bool hasAtomMinMax64 () const
 
bool hasLDG () const
 
bool hasLDU () const
 
bool hasHWROT32 () const
 
bool hasImageHandles () const
 
bool hasFP16Math () const
 
bool allowFP16Math () const
 
unsigned int getSmVersion () const
 
std::string getTargetName () const
 
unsigned getPTXVersion () const
 
NVPTXSubtargetinitializeSubtargetDependencies (StringRef CPU, StringRef FS)
 
void ParseSubtargetFeatures (StringRef CPU, StringRef FS)
 

Detailed Description

Definition at line 32 of file NVPTXSubtarget.h.

Constructor & Destructor Documentation

◆ NVPTXSubtarget()

NVPTXSubtarget::NVPTXSubtarget ( const Triple TT,
const std::string &  CPU,
const std::string &  FS,
const NVPTXTargetMachine TM 
)

This constructor initializes the data members to match that of the specified module.

Definition at line 49 of file NVPTXSubtarget.cpp.

Member Function Documentation

◆ allowFP16Math()

bool NVPTXSubtarget::allowFP16Math ( ) const

Definition at line 66 of file NVPTXSubtarget.cpp.

References hasFP16Math(), and NoF16Math.

Referenced by hasFP16Math(), and llvm::NVPTXTargetLowering::NVPTXTargetLowering().

◆ getFrameLowering()

const TargetFrameLowering* llvm::NVPTXSubtarget::getFrameLowering ( ) const
inlineoverride

Definition at line 58 of file NVPTXSubtarget.h.

◆ getInstrInfo()

const NVPTXInstrInfo* llvm::NVPTXSubtarget::getInstrInfo ( ) const
inlineoverride

Definition at line 61 of file NVPTXSubtarget.h.

◆ getPTXVersion()

unsigned llvm::NVPTXSubtarget::getPTXVersion ( ) const
inline

◆ getRegisterInfo()

const NVPTXRegisterInfo* llvm::NVPTXSubtarget::getRegisterInfo ( ) const
inlineoverride

◆ getSelectionDAGInfo()

const SelectionDAGTargetInfo* llvm::NVPTXSubtarget::getSelectionDAGInfo ( ) const
inlineoverride

Definition at line 68 of file NVPTXSubtarget.h.

◆ getSmVersion()

unsigned int llvm::NVPTXSubtarget::getSmVersion ( ) const
inline

◆ getTargetLowering()

const NVPTXTargetLowering* llvm::NVPTXSubtarget::getTargetLowering ( ) const
inlineoverride

◆ getTargetName()

std::string llvm::NVPTXSubtarget::getTargetName ( ) const
inline

Definition at line 83 of file NVPTXSubtarget.h.

Referenced by llvm::NVPTXAsmPrinter::doInitialization().

◆ hasAtomAddF64()

bool llvm::NVPTXSubtarget::hasAtomAddF64 ( ) const
inline

Definition at line 72 of file NVPTXSubtarget.h.

◆ hasAtomBitwise64()

bool llvm::NVPTXSubtarget::hasAtomBitwise64 ( ) const
inline

Definition at line 74 of file NVPTXSubtarget.h.

◆ hasAtomMinMax64()

bool llvm::NVPTXSubtarget::hasAtomMinMax64 ( ) const
inline

Definition at line 75 of file NVPTXSubtarget.h.

◆ hasAtomScope()

bool llvm::NVPTXSubtarget::hasAtomScope ( ) const
inline

Definition at line 73 of file NVPTXSubtarget.h.

◆ hasFP16Math()

bool llvm::NVPTXSubtarget::hasFP16Math ( ) const
inline

Definition at line 80 of file NVPTXSubtarget.h.

References allowFP16Math().

Referenced by allowFP16Math().

◆ hasHWROT32()

bool llvm::NVPTXSubtarget::hasHWROT32 ( ) const
inline

Definition at line 78 of file NVPTXSubtarget.h.

References hasImageHandles().

◆ hasImageHandles()

bool NVPTXSubtarget::hasImageHandles ( ) const

◆ hasLDG()

bool llvm::NVPTXSubtarget::hasLDG ( ) const
inline

Definition at line 76 of file NVPTXSubtarget.h.

Referenced by canLowerToLDG().

◆ hasLDU()

bool llvm::NVPTXSubtarget::hasLDU ( ) const
inline

Definition at line 77 of file NVPTXSubtarget.h.

◆ initializeSubtargetDependencies()

NVPTXSubtarget & NVPTXSubtarget::initializeSubtargetDependencies ( StringRef  CPU,
StringRef  FS 
)

Definition at line 34 of file NVPTXSubtarget.cpp.

References llvm::StringRef::empty(), and ParseSubtargetFeatures().

Referenced by getPTXVersion().

◆ ParseSubtargetFeatures()

void llvm::NVPTXSubtarget::ParseSubtargetFeatures ( StringRef  CPU,
StringRef  FS 
)

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