diff options
author | Ryan Prichard <rprichard@google.com> | 2022-07-21 13:09:39 -0700 |
---|---|---|
committer | Ryan Prichard <rprichard@google.com> | 2022-07-21 17:23:29 -0700 |
commit | 408a2638fda63b381f8750e16c78bc3c845cfdfd (patch) | |
tree | e21acd2ad6910507aa19fa4c04dec709f5d316e6 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | b8e1544b9df0340b920d1322884e9c5c51885bb1 (diff) | |
download | llvm-408a2638fda63b381f8750e16c78bc3c845cfdfd.zip llvm-408a2638fda63b381f8750e16c78bc3c845cfdfd.tar.gz llvm-408a2638fda63b381f8750e16c78bc3c845cfdfd.tar.bz2 |
[CUDA] Ignore __CLANG_ATOMIC_LLONG_LOCK_FREE on i386
The default host CPU for an i386 triple is typically at least an i586,
which has cmpxchg8b (Clang feature, "cx8"). Therefore,
`__CLANG_ATOMIC_LLONG_LOCK_FREE` is 2 on the host, but the value should
be 1 for the device.
Also, grep for `__CLANG_ATOMIC_*` instead of `__GCC_ATOMIC_*`. The CLANG
macros are always emitted, but the GCC macros are omitted for the
*-windows-msvc targets. The `__GCC_HAVE_SYNC_COMPARE_AND_SWAP` macro
always has GCC in its name, not CLANG, however.
Reviewed By: tra
Differential Revision: https://reviews.llvm.org/D127465
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions