summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/NVPTX/NVPTXSubtarget.h
diff options
context:
space:
mode:
authorJustin Holewinski <jholewinski@nvidia.com>2014-06-27 18:35:16 +0000
committerJustin Holewinski <jholewinski@nvidia.com>2014-06-27 18:35:16 +0000
commitc3f31ebe6e17a024e42fa526975564d5c04b8776 (patch)
treeffa9287c4291e2866eff0732dd97cc6e8577af05 /llvm/lib/Target/NVPTX/NVPTXSubtarget.h
parent6dca83987c838af0c3679b8c6ea26d5ddf43655b (diff)
downloadbcm5719-llvm-c3f31ebe6e17a024e42fa526975564d5c04b8776.tar.gz
bcm5719-llvm-c3f31ebe6e17a024e42fa526975564d5c04b8776.zip
[NVPTX] Update sub-target feature detection
llvm-svn: 211928
Diffstat (limited to 'llvm/lib/Target/NVPTX/NVPTXSubtarget.h')
-rw-r--r--llvm/lib/Target/NVPTX/NVPTXSubtarget.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/Target/NVPTX/NVPTXSubtarget.h b/llvm/lib/Target/NVPTX/NVPTXSubtarget.h
index 5805b4263d5..3ed5747b55f 100644
--- a/llvm/lib/Target/NVPTX/NVPTXSubtarget.h
+++ b/llvm/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; }
OpenPOWER on IntegriCloud