Skip to content

Commit c3f31eb

Browse files
[NVPTX] Update sub-target feature detection
llvm-svn: 211928
1 parent 6dca839 commit c3f31eb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

llvm/lib/Target/NVPTX/NVPTXSubtarget.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,12 @@ class NVPTXSubtarget : public NVPTXGenSubtargetInfo {
8181
bool hasFMAF32() const { return SmVersion >= 20; }
8282
bool hasFMAF64() const { return SmVersion >= 13; }
8383
bool hasLDG() const { return SmVersion >= 32; }
84-
bool hasLDU() const { return SmVersion >= 20; }
84+
bool hasLDU() const { return ((SmVersion >= 20) && (SmVersion < 30)); }
8585
bool hasGenericLdSt() const { return SmVersion >= 20; }
86-
inline bool hasHWROT32() const { return false; }
87-
inline bool hasSWROT32() const { return true; }
86+
inline bool hasHWROT32() const { return SmVersion >= 32; }
87+
inline bool hasSWROT32() const {
88+
return ((SmVersion >= 20) && (SmVersion < 32));
89+
}
8890
inline bool hasROT32() const { return hasHWROT32() || hasSWROT32(); }
8991
inline bool hasROT64() const { return SmVersion >= 20; }
9092

0 commit comments

Comments
 (0)