[clang] b8b6a5b - [OpenCL] Fix parsing of opencl-c.h as CL 3.0 with device-scope atomics enabled
Kevin Petit via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 4 07:18:20 PDT 2021
Author: Kevin Petit
Date: 2021-11-04T14:17:45Z
New Revision: b8b6a5bc86f570a6fb94b88b8c9d634c3af71eca
URL: https://github.com/llvm/llvm-project/commit/b8b6a5bc86f570a6fb94b88b8c9d634c3af71eca
DIFF: https://github.com/llvm/llvm-project/commit/b8b6a5bc86f570a6fb94b88b8c9d634c3af71eca.diff
LOG: [OpenCL] Fix parsing of opencl-c.h as CL 3.0 with device-scope atomics enabled
https://reviews.llvm.org/D108392
Signed-off-by: Kevin Petit <kevin.petit at arm.com>
Added:
Modified:
clang/lib/Headers/opencl-c.h
Removed:
################################################################################
diff --git a/clang/lib/Headers/opencl-c.h b/clang/lib/Headers/opencl-c.h
index 562e0551ffdc6..f3a9ecdec65c1 100644
--- a/clang/lib/Headers/opencl-c.h
+++ b/clang/lib/Headers/opencl-c.h
@@ -13333,7 +13333,7 @@ uint __ovld atomic_fetch_or(volatile __local atomic_uint *object, uint operand);
int __ovld atomic_fetch_xor(volatile __global atomic_int *object, int operand);
int __ovld atomic_fetch_xor(volatile __local atomic_int *object, int operand);
uint __ovld atomic_fetch_xor(volatile __global atomic_uint *object, uint operand);
-uint __ovld atomic_fetch_xor(volatile __local atomic_uint *object, uint operand);i
+uint __ovld atomic_fetch_xor(volatile __local atomic_uint *object, uint operand);
int __ovld atomic_fetch_and(volatile __global atomic_int *object, int operand);
int __ovld atomic_fetch_and(volatile __local atomic_int *object, int operand);
uint __ovld atomic_fetch_and(volatile __global atomic_uint *object, uint operand);
More information about the cfe-commits
mailing list