[all-commits] [llvm/llvm-project] 477bc8: [OpenCL] Guard atomic_double with cl_khr_int64_*

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Wed Feb 16 02:07:55 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 477bc8e8b9311fdac4c360b1fe7d29d0d10aac6c
      https://github.com/llvm/llvm-project/commit/477bc8e8b9311fdac4c360b1fe7d29d0d10aac6c
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2022-02-16 (Wed, 16 Feb 2022)

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

  Log Message:
  -----------
  [OpenCL] Guard atomic_double with cl_khr_int64_*

It is necessary to guard atomic_double type according to
https://www.khronos.org/registry/OpenCL/specs/3.0-unified/html/OpenCL_C.html#_footnotedef_54.
Platform that disable cl_khr_int64_base_atomics and
cl_khr_int64_extended_atomics will have compiling errors even if
atomic_double is not used.

Patch by Haonan Yang.

Differential Revision: https://reviews.llvm.org/D119398




More information about the All-commits mailing list