diff options
author | Justin Holewinski <jholewinski@nvidia.com> | 2014-06-27 18:35:16 +0000 |
---|---|---|
committer | Justin Holewinski <jholewinski@nvidia.com> | 2014-06-27 18:35:16 +0000 |
commit | aac29c0c220d27b4c2a96d4e201a8c7e0d6c880a (patch) | |
tree | bcb7761bd279646a0ea09c26f9b15ab1fa02f022 /lib/Target/NVPTX | |
parent | 7d7f3e392303a1be037cad98a2f79141575c8e51 (diff) | |
download | llvm-aac29c0c220d27b4c2a96d4e201a8c7e0d6c880a.tar.gz llvm-aac29c0c220d27b4c2a96d4e201a8c7e0d6c880a.tar.bz2 llvm-aac29c0c220d27b4c2a96d4e201a8c7e0d6c880a.tar.xz |
[NVPTX] Update sub-target feature detection
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211928 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/NVPTX')
-rw-r--r-- | lib/Target/NVPTX/NVPTXSubtarget.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Target/NVPTX/NVPTXSubtarget.h b/lib/Target/NVPTX/NVPTXSubtarget.h index 5805b4263d..3ed5747b55 100644 --- a/lib/Target/NVPTX/NVPTXSubtarget.h +++ b/lib/Target/NVPTX/NVPTXSubtarget.h @@ -81,10 +81,12 @@ public: bool hasFMAF32() const { return SmVersion >= 20; } bool hasFMAF64() const { return SmVersion >= 13; } bool hasLDG() const { return SmVersion >= 32; } - bool hasLDU() const { return SmVersion >= 20; } + bool hasLDU() const { return ((SmVersion >= 20) && (SmVersion < 30)); } bool hasGenericLdSt() const { return SmVersion >= 20; } - inline bool hasHWROT32() const { return false; } - inline bool hasSWROT32() const { return true; } + inline bool hasHWROT32() const { return SmVersion >= 32; } + inline bool hasSWROT32() const { + return ((SmVersion >= 20) && (SmVersion < 32)); + } inline bool hasROT32() const { return hasHWROT32() || hasSWROT32(); } inline bool hasROT64() const { return SmVersion >= 20; } |