[OpenCL] Remove mixed signedness atomic_fetch_ from opencl-c.h
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Tue, 23 Mar 2021 10:20:13 +0000 (10:20 +0000)
committerSven van Haastregt <sven.vanhaastregt@arm.com>
Tue, 23 Mar 2021 10:20:13 +0000 (10:20 +0000)
commit1c6521a0ddfabb9c451f57164369e49b2826ee6d
tree05dcc0564adca101273ef68ad5f7d0f17d1b056f
parent5bfbd9d9382141467b3082834b99921c0dbd3d9a
[OpenCL] Remove mixed signedness atomic_fetch_ from opencl-c.h

The OpenCL C specification v3.0.6 s6.15.12.7.5 mentions:

    For atomic_fetch and modify functions with key = or, xor, and, min
    and max on atomic type atomic_intptr_t, M is intptr_t, and on
    atomic type atomic_uintptr_t, M is uintptr_t.

Remove the atomic_fetch_* overloads from opencl-c.h that mix intptr_t
and uintptr_t in the same declaration.

Differential Revision: https://reviews.llvm.org/D98418
clang/lib/Headers/opencl-c.h