Mercurial > hg > CbC > CbC_llvm
diff lib/Target/NVPTX/NVPTXSubtarget.h @ 121:803732b1fca8
LLVM 5.0
author | kono |
---|---|
date | Fri, 27 Oct 2017 17:07:41 +0900 |
parents | 1172e4bd9c6f |
children | 3a76565eade5 |
line wrap: on
line diff
--- a/lib/Target/NVPTX/NVPTXSubtarget.h Fri Nov 25 19:14:25 2016 +0900 +++ b/lib/Target/NVPTX/NVPTXSubtarget.h Fri Oct 27 17:07:41 2017 +0900 @@ -101,6 +101,8 @@ inline bool hasROT32() const { return hasHWROT32() || hasSWROT32(); } inline bool hasROT64() const { return SmVersion >= 20; } bool hasImageHandles() const; + bool hasFP16Math() const { return SmVersion >= 53; } + bool allowFP16Math() const; unsigned int getSmVersion() const { return SmVersion; } std::string getTargetName() const { return TargetName; }