X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FTarget%2FNVPTX%2FNVPTXSubtarget.h;h=c7287719be5f37eb336fb9e35684016c1244dc18;hb=98a8bb4c52b87193a47cf82ae0aa1ef673749b84;hp=299bb93be67a8b76a5439d499a30c8d5a0e8e86c;hpb=9d2ea22e2b0842e692d58e7f127951b3d86ab75d;p=oota-llvm.git diff --git a/lib/Target/NVPTX/NVPTXSubtarget.h b/lib/Target/NVPTX/NVPTXSubtarget.h index 299bb93be67..c7287719be5 100644 --- a/lib/Target/NVPTX/NVPTXSubtarget.h +++ b/lib/Target/NVPTX/NVPTXSubtarget.h @@ -32,7 +32,6 @@ namespace llvm { class NVPTXSubtarget : public NVPTXGenSubtargetInfo { virtual void anchor(); std::string TargetName; - bool Is64Bit; // PTX version x.y is represented as 10*x+y, e.g. 3.1 == 31 unsigned PTXVersion; @@ -53,9 +52,8 @@ public: /// This constructor initializes the data members to match that /// of the specified module. /// - NVPTXSubtarget(const std::string &TT, const std::string &CPU, - const std::string &FS, const NVPTXTargetMachine &TM, - bool is64Bit); + NVPTXSubtarget(const Triple &TT, const std::string &CPU, + const std::string &FS, const NVPTXTargetMachine &TM); const TargetFrameLowering *getFrameLowering() const override { return &FrameLowering; @@ -94,20 +92,9 @@ public: } inline bool hasROT32() const { return hasHWROT32() || hasSWROT32(); } inline bool hasROT64() const { return SmVersion >= 20; } - - bool hasImageHandles() const { - // Enable handles for Kepler+, where CUDA supports indirect surfaces and - // textures - if (getDrvInterface() == NVPTX::CUDA) - return (SmVersion >= 30); - - // Disabled, otherwise - return false; - } - bool is64Bit() const { return Is64Bit; } + bool hasImageHandles() const; unsigned int getSmVersion() const { return SmVersion; } - NVPTX::DrvInterface getDrvInterface() const; std::string getTargetName() const { return TargetName; } unsigned getPTXVersion() const { return PTXVersion; }