[libc-commits] [libc] [libc] Replace usage of GPU helpers with ones from 'gpuintrin.h' (PR #116454)
Shilei Tian via libc-commits
libc-commits at lists.llvm.org
Fri Nov 15 20:06:44 PST 2024
================
@@ -30,6 +28,17 @@
namespace LIBC_NAMESPACE_DECL {
namespace rpc {
+/// Use scoped atomic variants if they are available for the target.
+#if !__has_builtin(__scoped_atomic_load_n)
+#define __scoped_atomic_load_n(src, ord, scp) __atomic_load_n(src, ord)
----------------
shiltian wrote:
Even for future-proofing, if someone else contributes to this and doesn’t realize it’s a macro or doesn’t use it correctly, I still believe it’s a good idea to implement it in a proper way. Not sure about the policy of libc project though. I'll leave it to others.
https://github.com/llvm/llvm-project/pull/116454
More information about the libc-commits
mailing list