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"
27 void NVPTXSubtarget::anchor() {}
34 TargetName = CPU.
empty() ?
"sm_20" : CPU;
39 if (PTXVersion == 0) {
47 const std::string &FS,
50 InstrInfo(), TLInfo(TM, initializeSubtargetDependencies(CPU, FS)),
57 return (SmVersion >= 30);
size_t size() const
size - Get the string size.
void ParseSubtargetFeatures(StringRef CPU, StringRef FS)
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.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
Triple - Helper class for working with autoconf configuration names.
bool hasImageHandles() const
NVPTXSubtarget & initializeSubtargetDependencies(StringRef CPU, StringRef FS)
StringRef - Represent a constant reference to a string, i.e.
NVPTX::DrvInterface getDrvInterface() const
bool empty() const
empty - Check if the string is empty.