|
1 |
| -From 6dacab1f93b0841d698e3153764e2cfa252979ff Mon Sep 17 00:00:00 2001 |
| 1 | +From 911aba1f4a95f914994957a769c938eac04555ca Mon Sep 17 00:00:00 2001 |
2 | 2 | From: Anton Zabaznov < [email protected]>
|
3 | 3 | Date: Tue, 22 Sep 2020 19:03:50 +0300
|
4 |
| -Subject: [PATCH] OpenCL 3.0 support |
| 4 | +Subject: [PATCH 1/2] OpenCL 3.0 support |
5 | 5 |
|
6 | 6 | ---
|
7 | 7 | clang/include/clang/Basic/Builtins.def | 65 +-
|
@@ -935,7 +935,7 @@ index 430e07d36f6..2cc688ccc3d 100644
|
935 | 935 |
|
936 | 936 | #endif // defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
|
937 | 937 | diff --git a/clang/lib/Headers/opencl-c.h b/clang/lib/Headers/opencl-c.h
|
938 |
| -index 06c5ab6a72f..c402a72e801 100644 |
| 938 | +index 06c5ab6a72f..a2327e3cb8a 100644 |
939 | 939 | --- a/clang/lib/Headers/opencl-c.h
|
940 | 940 | +++ b/clang/lib/Headers/opencl-c.h
|
941 | 941 | @@ -35,7 +35,6 @@
|
@@ -3527,7 +3527,7 @@ index 06c5ab6a72f..c402a72e801 100644
|
3527 | 3527 |
|
3528 | 3528 | // atomic_fetch()
|
3529 | 3529 | -
|
3530 |
| -+#ifdef defined(__opencl_c_atomic_scope_device) && \ |
| 3530 | ++#if defined(__opencl_c_atomic_scope_device) && \ |
3531 | 3531 | + defined(__opencl_c_atomic_order_seq_cst)
|
3532 | 3532 | +#ifdef __opencl_c_generic_address_space
|
3533 | 3533 | int __ovld atomic_fetch_add(volatile atomic_int *object, int operand);
|
@@ -3703,7 +3703,7 @@ index 06c5ab6a72f..c402a72e801 100644
|
3703 | 3703 | + // defined(cl_khr_int64_extended_atomics)
|
3704 | 3704 | +#endif // __opencl_c_generic_address_space
|
3705 | 3705 | +
|
3706 |
| -+#ifdef(__OPENCL_C_VERSION__ >= CL_VERSION_3_0) |
| 3706 | ++#if(__OPENCL_C_VERSION__ >= CL_VERSION_3_0) |
3707 | 3707 | +int __ovld atomic_fetch_add(volatile atomic_int __global *object, int operand);
|
3708 | 3708 | +uint __ovld atomic_fetch_add(volatile atomic_uint __local *object,
|
3709 | 3709 | + uint operand);
|
|
0 commit comments