19 #define DEBUG_TYPE "nvptx-subtarget" 21 #define GET_SUBTARGETINFO_ENUM 22 #define GET_SUBTARGETINFO_TARGET_DESC 23 #define GET_SUBTARGETINFO_CTOR 24 #include "NVPTXGenSubtargetInfo.inc" 28 cl::desc(
"NVPTX Specific: Disable generation of f16 math ops."),
32 void NVPTXSubtarget::anchor() {}
37 TargetName = CPU.
empty() ?
"sm_20" : CPU;
42 if (PTXVersion == 0) {
50 const std::string &FS,
60 return (SmVersion >= 30);
This class represents lattice values for constants.
void ParseSubtargetFeatures(StringRef CPU, StringRef FS)
bool hasImageHandles() const
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.
static cl::opt< bool > NoF16Math("nvptx-no-f16-math", cl::ZeroOrMore, cl::Hidden, cl::desc("NVPTX Specific: Disable generation of f16 math ops."), cl::init(false))
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE bool empty() const
empty - Check if the string is empty.
initializer< Ty > init(const Ty &Val)
NVPTX::DrvInterface getDrvInterface() const
Triple - Helper class for working with autoconf configuration names.
bool allowFP16Math() const
NVPTXSubtarget & initializeSubtargetDependencies(StringRef CPU, StringRef FS)
StringRef - Represent a constant reference to a string, i.e.