[all-commits] [llvm/llvm-project] d61ded: [OpenCL] Make -cl-ext a driver option.

Anastasia Stulova via All-commits all-commits at lists.llvm.org
Tue May 24 03:36:00 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d61ded1034bb9563c43d048ba0be4eff662e6144
      https://github.com/llvm/llvm-project/commit/d61ded1034bb9563c43d048ba0be4eff662e6144
  Author: Anastasia Stulova <anastasia.stulova at arm.com>
  Date:   2022-05-24 (Tue, 24 May 2022)

  Changed paths:
    M clang/docs/OpenCLSupport.rst
    M clang/docs/UsersManual.rst
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/opencl.cl

  Log Message:
  -----------
  [OpenCL] Make -cl-ext a driver option.

For generic targets such as SPIR-V clang sets all OpenCL
extensions/features as supported by default. However
concrete targets are unlikely to support all extensions
features, which creates a problem when such generic SPIR-V
binary is compiled for a specific target later on.

To allow compile time diagnostics for unsupported features
this flag is now being exposed in the clang driver.

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




More information about the All-commits mailing list