[libclc] [NFC][libclc] Merge atomic extension built-ins with identical name into a single file (PR #134489)
Wenju He via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 10 17:08:10 PDT 2025
================
@@ -0,0 +1,24 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifdef cl_khr_global_int32_extended_atomics
+#define __CLC_FUNCTION atom_or
+#define __CLC_ADDRESS_SPACE global
+#include <clc/atomic/atom_decl_int32.inc>
+#endif // cl_khr_global_int32_extended_atomics
+
+#ifdef cl_khr_local_int32_extended_atomics
+#define __CLC_FUNCTION atom_or
+#define __CLC_ADDRESS_SPACE local
+#include <clc/atomic/atom_decl_int32.inc>
+#endif // cl_khr_local_int32_extended_atomics
+
+#ifdef cl_khr_int64_base_atomics
----------------
wenju-he wrote:
done in https://github.com/llvm/llvm-project/pull/134489/commits/de7d8b93e0f6f0e162f4672b98ce240ecbb419ea
https://github.com/llvm/llvm-project/pull/134489
More information about the cfe-commits
mailing list