From: Yaxun Liu Date: Tue, 25 Oct 2016 21:37:05 +0000 (+0000) Subject: [OpenCL] Add missing atom_xor for 64 bit to opencl-c.h X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f97051c3459ea40409869afd0d1c0cb8b2e7d26c;p=clang [OpenCL] Add missing atom_xor for 64 bit to opencl-c.h Differential Revision: https://reviews.llvm.org/D25954 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285125 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Headers/opencl-c.h b/lib/Headers/opencl-c.h index 9b5e2c3cc5..f8e132040d 100644 --- a/lib/Headers/opencl-c.h +++ b/lib/Headers/opencl-c.h @@ -14616,6 +14616,13 @@ int __ovld atom_xor(volatile __local int *p, int val); unsigned int __ovld atom_xor(volatile __local unsigned int *p, unsigned int val); #endif +#if defined(cl_khr_int64_extended_atomics) +long __ovld atom_xor(volatile __global long *p, long val); +unsigned long __ovld atom_xor(volatile __global unsigned long *p, unsigned long val); +long __ovld atom_xor(volatile __local long *p, long val); +unsigned long __ovld atom_xor(volatile __local unsigned long *p, unsigned long val); +#endif + #if defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics) #pragma OPENCL EXTENSION cl_khr_int64_base_atomics : disable #pragma OPENCL EXTENSION cl_khr_int64_extended_atomics : disable