diff options
author | Artem Belevich <tra@google.com> | 2018-04-11 17:51:19 +0000 |
---|---|---|
committer | Artem Belevich <tra@google.com> | 2018-04-11 17:51:19 +0000 |
commit | 24e8a680e545dbdef3483bbf4ab47a05b14ab529 (patch) | |
tree | 19b3898def51c7a937fe85cc5ec0d0cc7e81863f /llvm/lib | |
parent | 56e6e0d352d0a0f1020291b0a4212d6f39fe55c3 (diff) | |
download | bcm5719-llvm-24e8a680e545dbdef3483bbf4ab47a05b14ab529.tar.gz bcm5719-llvm-24e8a680e545dbdef3483bbf4ab47a05b14ab529.zip |
[NVPTX, CUDA] Improved feature constraints on NVPTX target builtins.
When NVPTX TARGET_BUILTIN specifies sm_XX or ptxYY as required feature,
consider those features available if we're compiling for GPU >= sm_XX or have
enabled PTX version >= ptxYY.
Differential Revision: https://reviews.llvm.org/D45061
llvm-svn: 329829
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/NVPTX/NVPTXSubtarget.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/NVPTX/NVPTXSubtarget.h b/llvm/lib/Target/NVPTX/NVPTXSubtarget.h index b89bd416f01..aa57e3e51ed 100644 --- a/llvm/lib/Target/NVPTX/NVPTXSubtarget.h +++ b/llvm/lib/Target/NVPTX/NVPTXSubtarget.h @@ -74,7 +74,7 @@ public: } bool hasAtomAddF64() const { return SmVersion >= 60; } - bool hasAtomScope() const { return HasAtomScope; } + bool hasAtomScope() const { return SmVersion >= 60; } bool hasAtomBitwise64() const { return SmVersion >= 32; } bool hasAtomMinMax64() const { return SmVersion >= 32; } bool hasLDG() const { return SmVersion >= 32; } |