13#ifndef LLVM_LIB_TARGET_NVPTX_NVPTXSUBTARGET_H
14#define LLVM_LIB_TARGET_NVPTX_NVPTXSUBTARGET_H
26#define GET_SUBTARGETINFO_HEADER
27#include "NVPTXGenSubtargetInfo.inc"
32 virtual void anchor();
33 std::string TargetName;
40 unsigned int FullSmVersion;
44 unsigned int SmVersion;
48 std::unique_ptr<const SelectionDAGTargetInfo> TSInfo;
64 return &FrameLowering;
77 return SmVersion >= 100 && PTXVersion >= 88 &&
84 bool hasAtomCas16()
const {
return SmVersion >= 70 && PTXVersion >= 63; }
86 bool hasClusters()
const {
return SmVersion >= 90 && PTXVersion >= 78; }
87 bool hasLDG()
const {
return SmVersion >= 32; }
93 bool hasNoReturn()
const {
return SmVersion >= 30 && PTXVersion >= 64; }
99 return SmVersion >= 90 && PTXVersion >= 86;
104 return SmVersion >= 61 && PTXVersion >= 50;
108 bool HasTcgen05 =
false;
109 switch (FullSmVersion) {
118 return HasTcgen05 && PTXVersion >= 86;
126 switch (FullSmVersion) {
129 return PTXVersion >= 86;
131 return PTXVersion >= 88;
145 bool hasCvtaParam()
const {
return SmVersion >= 70 && PTXVersion >= 77; }
168 return TargetName.empty() ?
"sm_30" : TargetName;
NVPTX address space definition.
const NVPTXRegisterInfo & getRegisterInfo() const
bool hasCpAsyncBulkTensorCTAGroupSupport() const
const NVPTXInstrInfo * getInstrInfo() const override
void failIfClustersUnsupported(std::string const &FailureMessage) const
std::string getTargetName() const
unsigned getMaxRequiredAlignment() const
bool hasAtomMinMax64() const
bool hasAtomAddF64() const
bool hasSplitAcquireAndReleaseFences() const
bool hasMaskOperator() const
const NVPTXTargetLowering * getTargetLowering() const override
void ParseSubtargetFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS)
unsigned getMinCmpXchgSizeInBits() const
unsigned getPTXVersion() const
bool hasCvtaParam() const
~NVPTXSubtarget() override
bool hasNativeBF16Support(int Opcode) const
const NVPTXRegisterInfo * getRegisterInfo() const override
unsigned int getFullSmVersion() const
unsigned int getSmVersion() const
bool hasDotInstructions() const
bool hasFamilySpecificFeatures() const
bool hasTcgen05Instructions() const
bool hasAtomBitwise64() const
bool hasRelaxedMMIO() const
bool hasTargetName() const
bool hasAtomSwap128() const
bool hasF32x2Instructions() const
bool allowFP16Math() const
const TargetFrameLowering * getFrameLowering() const override
bool hasAtomScope() const
bool hasAtomCas16() const
bool hasMemoryOrdering() const
bool hasArchAccelFeatures() const
NVPTXSubtarget & initializeSubtargetDependencies(StringRef CPU, StringRef FS)
const SelectionDAGTargetInfo * getSelectionDAGInfo() const override
bool has256BitVectorLoadStore(unsigned AS) const
bool hasPTXASUnreachableBug() const
Targets can subclass this to parameterize the SelectionDAG lowering and instruction selection process...
StringRef - Represent a constant reference to a string, i.e.
Information about stack frame layout on the target.
Triple - Helper class for working with autoconf configuration names.
This is an optimization pass for GlobalISel generic memory operations.