[all-commits] [llvm/llvm-project] aa9c2d: [OpenCL] Align subgroup builtin guards

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Wed Feb 23 04:22:34 PST 2022


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

  Changed paths:
    M clang/lib/Headers/opencl-c-base.h
    M clang/lib/Headers/opencl-c.h
    M clang/lib/Sema/OpenCLBuiltins.td
    M clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl

  Log Message:
  -----------
  [OpenCL] Align subgroup builtin guards

Until now, subgroup builtins are available with `opencl-c.h` when at
least one of `cl_intel_subgroups`, `cl_khr_subgroups`, or
`__opencl_c_subgroups` is defined.  With `-fdeclare-opencl-builtins`,
subgroup builtins are conditionalized on `cl_khr_subgroups` only.

Align `-fdeclare-opencl-builtins` to `opencl-c.h` by introducing the
internal `__opencl_subgroup_builtins` macro.

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




More information about the All-commits mailing list