[all-commits] [llvm/llvm-project] bfb1a3: [OpenCL] Adjust diagnostic for subgroup support.

Anton Zabaznov via All-commits all-commits at lists.llvm.org
Fri Feb 11 06:40:40 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bfb1a33bec7c88170b0809b8a7c9cb860e7cc19b
  Author: Anton Zabaznov <anton.zabaznov at intel.com>
  Date:   2022-02-11 (Fri, 11 Feb 2022)

  Changed paths:
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/SemaOpenCL/cl20-device-side-enqueue.cl

  Log Message:
  [OpenCL] Adjust diagnostic for subgroup support.

OpenCL C 3.0 __opencl_c_subgroups feature is slightly different
then other equivalent features and extensions (fp64 and 3d image writes):
OpenCL C 3.0 device can support the extension but not the feature.
cl_khr_subgroups requires subgroup independent forward progress.

This patch adjusts the check which is used when translating language
builtins to check either the extension or feature is supported.

Reviewed By: Anastasia

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

More information about the All-commits mailing list