[all-commits] [llvm/llvm-project] 1c6521: [OpenCL] Remove mixed signedness atomic_fetch_ fro...

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Tue Mar 23 03:21:35 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c6521a0ddfabb9c451f57164369e49b2826ee6d
      https://github.com/llvm/llvm-project/commit/1c6521a0ddfabb9c451f57164369e49b2826ee6d
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2021-03-23 (Tue, 23 Mar 2021)

  Changed paths:
    M clang/lib/Headers/opencl-c.h

  Log Message:
  -----------
  [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




More information about the All-commits mailing list