================
@@ -159,6 +159,13 @@ class LLVM_LIBRARY_VISIBILITY NVPTXTargetInfo : public
TargetInfo {
Opts["cl_khr_global_int32_extended_atomics"] = true;
Opts["cl_khr_local_int32_base_atomics"] = true;
Opts["cl_khr_local_int32_extended_atomics"] = true;
+ // 64-bit atomics are supported natively on 64-bit targets, where
+ // MaxAtomicInlineWidth is the target pointer width. libclc needs these
+ // extensions enabled to define the 64-bit atomic builtins.
----------------
zjin-lcf wrote:
Agreed, dropped the whole comment.
https://github.com/llvm/llvm-project/pull/213691
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits