[NVPTX] Update sub-target feature detection

llvm-svn: 211928
This commit is contained in:
Justin Holewinski 2014-06-27 18:35:16 +00:00
parent 6dca83987c
commit c3f31ebe6e
1 changed files with 5 additions and 3 deletions

View File

@ -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; }