[all-commits] [llvm/llvm-project] b250cc: [OpenCL] Do not guard vload/store_half builtins

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Tue May 17 02:58:10 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b250cca11d5996ed01d72cb1f933867da0e8d5e0
      https://github.com/llvm/llvm-project/commit/b250cca11d5996ed01d72cb1f933867da0e8d5e0
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2022-05-17 (Tue, 17 May 2022)

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

  Log Message:
  -----------
  [OpenCL] Do not guard vload/store_half builtins

The vload*_half* and vstore*_half* builtins do not require the
cl_khr_fp16 extension: pointers to `half` can be declared without the
extension and the _half variants of vload and vstore should be
available without the extension.

This aligns the guards for these builtins for
`-fdeclare-opencl-builtins` with `opencl-c.h`.

Fixes https://github.com/llvm/llvm-project/issues/55275

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




More information about the All-commits mailing list