HomePhabricator

[OpenCL] Accept .rgba in OpenCL 3.0

Authored by svenvh on Mon, Apr 12, 1:30 AM.

Description

[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

Details

Committed
svenvhMon, Apr 12, 1:30 AM
Differential Revision
D99969: [OpenCL] Accept .rgba in OpenCL 3.0
Parents
rGa655f250fef8: [AArch64] Adds memory operands for indexed loads.
Branches
Unknown
Tags
Unknown