[libclc] [libclc] Use CLC atomic functions for legacy OpenCL atom/atomic builtins (PR #168325)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 18 13:11:33 PST 2025


================
@@ -6,32 +6,35 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include <clc/atomic/clc_atomic_fetch_add.h>
 #include <clc/opencl/atomic/atom_add.h>
-#include <clc/opencl/atomic/atomic_add.h>
+
+// Non-volatile overloads are for backward compatibility with OpenCL 1.0.
----------------
arsenm wrote:

I don't remember the history here, but isn't this backwards? Even if the language is volatile qualified we probably shouldn't be emitting IR with volatile markers 

https://github.com/llvm/llvm-project/pull/168325


More information about the cfe-commits mailing list