LLVM  6.0.0svn
Public Member Functions | Protected Attributes | 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 hasBrkPt () const
 
bool hasAtomRedG32 () const
 
bool hasAtomRedS32 () const
 
bool hasAtomRedG64 () const
 
bool hasAtomRedS64 () const
 
bool hasAtomRedGen32 () const
 
bool hasAtomRedGen64 () const
 
bool hasAtomAddF32 () const
 
bool hasAtomAddF64 () const
 
bool hasAtomScope () const
 
bool hasAtomBitwise64 () const
 
bool hasAtomMinMax64 () const
 
bool hasVote () const
 
bool hasDouble () const
 
bool reqPTX20 () const
 
bool hasF32FTZ () const
 
bool hasFMAF32 () const
 
bool hasFMAF64 () const
 
bool hasLDG () const
 
bool hasLDU () const
 
bool hasGenericLdSt () const
 
bool hasHWROT32 () const
 
bool hasSWROT32 () const
 
bool hasROT32 () const
 
bool hasROT64 () 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)
 

Protected Attributes

bool HasAtomScope
 

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 62 of file NVPTXSubtarget.h.

◆ getInstrInfo()

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

Definition at line 65 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 72 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 108 of file NVPTXSubtarget.h.

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

◆ hasAtomAddF32()

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

Definition at line 83 of file NVPTXSubtarget.h.

◆ hasAtomAddF64()

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

Definition at line 84 of file NVPTXSubtarget.h.

◆ hasAtomBitwise64()

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

Definition at line 86 of file NVPTXSubtarget.h.

◆ hasAtomMinMax64()

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

Definition at line 87 of file NVPTXSubtarget.h.

◆ hasAtomRedG32()

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

Definition at line 77 of file NVPTXSubtarget.h.

◆ hasAtomRedG64()

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

Definition at line 79 of file NVPTXSubtarget.h.

◆ hasAtomRedGen32()

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

Definition at line 81 of file NVPTXSubtarget.h.

◆ hasAtomRedGen64()

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

Definition at line 82 of file NVPTXSubtarget.h.

◆ hasAtomRedS32()

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

Definition at line 78 of file NVPTXSubtarget.h.

◆ hasAtomRedS64()

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

Definition at line 80 of file NVPTXSubtarget.h.

◆ hasAtomScope()

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

Definition at line 85 of file NVPTXSubtarget.h.

References HasAtomScope.

◆ hasBrkPt()

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

Definition at line 76 of file NVPTXSubtarget.h.

◆ hasDouble()

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

Definition at line 89 of file NVPTXSubtarget.h.

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

◆ hasF32FTZ()

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

Definition at line 91 of file NVPTXSubtarget.h.

◆ hasFMAF32()

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

Definition at line 92 of file NVPTXSubtarget.h.

◆ hasFMAF64()

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

Definition at line 93 of file NVPTXSubtarget.h.

◆ hasFP16Math()

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

Definition at line 104 of file NVPTXSubtarget.h.

References allowFP16Math().

Referenced by allowFP16Math().

◆ hasGenericLdSt()

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

Definition at line 96 of file NVPTXSubtarget.h.

◆ hasHWROT32()

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

Definition at line 97 of file NVPTXSubtarget.h.

Referenced by hasROT32().

◆ hasImageHandles()

bool NVPTXSubtarget::hasImageHandles ( ) const

◆ hasLDG()

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

Definition at line 94 of file NVPTXSubtarget.h.

Referenced by canLowerToLDG().

◆ hasLDU()

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

Definition at line 95 of file NVPTXSubtarget.h.

◆ hasROT32()

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

Definition at line 101 of file NVPTXSubtarget.h.

References hasHWROT32(), and hasSWROT32().

Referenced by llvm::NVPTXTargetLowering::NVPTXTargetLowering().

◆ hasROT64()

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

Definition at line 102 of file NVPTXSubtarget.h.

References hasImageHandles().

Referenced by llvm::NVPTXTargetLowering::NVPTXTargetLowering().

◆ hasSWROT32()

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

Definition at line 98 of file NVPTXSubtarget.h.

Referenced by hasROT32().

◆ hasVote()

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

Definition at line 88 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 
)

◆ reqPTX20()

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

Definition at line 90 of file NVPTXSubtarget.h.

Member Data Documentation

◆ HasAtomScope

bool llvm::NVPTXSubtarget::HasAtomScope
protected

Definition at line 53 of file NVPTXSubtarget.h.

Referenced by hasAtomScope().


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