[all-commits] [llvm/llvm-project] 731bf2: [OpenCL] Accept .rgba in OpenCL 3.0

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Mon Apr 12 01:30:40 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 731bf28a6092286dde6972803b35c026e32bd6b1
      https://github.com/llvm/llvm-project/commit/731bf28a6092286dde6972803b35c026e32bd6b1
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2021-04-12 (Mon, 12 Apr 2021)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaExprMember.cpp
    M clang/test/SemaOpenCL/ext_vectors.cl

  Log Message:
  -----------
  [OpenCL] Accept .rgba in OpenCL 3.0

The .rgba vector component accessors are supported in OpenCL C 3.0.

Previously, the diagnostic would check `OpenCLVersion` for version 2.2
(value 220) and report those accessors are an OpenCL 2.2 feature.
However, there is no "OpenCL C version 2.2", so change the check and
diagnostic text to 3.0 only.

A spurious `OpenCLVersion` argument was passed into the diagnostic;
remove that.

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




More information about the All-commits mailing list