[all-commits] [llvm/llvm-project] 816001: [OpenCL] Change default standard version to CL1.2

Anastasia Stulova via All-commits all-commits at lists.llvm.org
Mon Jul 26 07:05:06 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 81600160b3f926746d02c52003d81180941fe9d0
      https://github.com/llvm/llvm-project/commit/81600160b3f926746d02c52003d81180941fe9d0
  Author: Anastasia Stulova <anastasia.stulova at arm.com>
  Date:   2021-07-26 (Mon, 26 Jul 2021)

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

  Log Message:
  -----------
  [OpenCL] Change default standard version to CL1.2

Set default version for 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 diagnostic and
atomic test.

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




More information about the All-commits mailing list