[llvm] r211928 - [NVPTX] Update sub-target feature detection
Justin Holewinski
jholewinski at nvidia.com
Fri Jun 27 11:35:16 PDT 2014
Author: jholewinski
Date: Fri Jun 27 13:35:16 2014
New Revision: 211928
URL: http://llvm.org/viewvc/llvm-project?rev=211928&view=rev
Log:
[NVPTX] Update sub-target feature detection
Modified:
llvm/trunk/lib/Target/NVPTX/NVPTXSubtarget.h
Modified: llvm/trunk/lib/Target/NVPTX/NVPTXSubtarget.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/NVPTX/NVPTXSubtarget.h?rev=211928&r1=211927&r2=211928&view=diff
==============================================================================
--- llvm/trunk/lib/Target/NVPTX/NVPTXSubtarget.h (original)
+++ llvm/trunk/lib/Target/NVPTX/NVPTXSubtarget.h Fri Jun 27 13:35:16 2014
@@ -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; }
More information about the llvm-commits
mailing list