[PATCH] D106504: [OpenCL] Change default standard version to CL1.2

Anastasia Stulova via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 21 15:32:43 PDT 2021


Anastasia created this revision.
Anastasia added reviewers: svenvh, azabaznov.
Herald added subscribers: ebevhan, yaxunl.
Anastasia requested review of this revision.

As suggested in RFC: https://lists.llvm.org/pipermail/cfe-dev/2021-June/068318.html set default version OpenCL C  to 1.2. This means that the absence of any standard flag will be equivalent to passing `-cl-std=CL1.2`.

Note that this patch also fixes incorrect version check for the pointer to pointer kernel arguments.


https://reviews.llvm.org/D106504

Files:
  clang/lib/Frontend/CompilerInvocation.cpp
  clang/lib/Sema/SemaDecl.cpp
  clang/test/CodeGenOpenCL/spir_version.cl
  clang/test/Parser/opencl-atomics-cl20.cl
  clang/test/Parser/opencl-cl20.cl
  clang/test/Parser/opencl-storage-class.cl
  clang/test/Preprocessor/predefined-macros.c
  clang/test/SemaOpenCL/fp64-fp16-options.cl
  clang/test/SemaOpenCL/func.cl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106504.360620.patch
Type: text/x-patch
Size: 11992 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210721/0b548d4e/attachment-0001.bin>


More information about the cfe-commits mailing list