[all-commits] [llvm/llvm-project] 919d29: [clang][SPIR-V] Use the SPIR-V backend by default ...

Nick Sarnie via All-commits all-commits at lists.llvm.org
Mon Mar 10 07:21:40 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 919d293176fb841dcae4a850b70a09c1307f7d59
      https://github.com/llvm/llvm-project/commit/919d293176fb841dcae4a850b70a09c1307f7d59
  Author: Nick Sarnie <nick.sarnie at intel.com>
  Date:   2025-03-10 (Mon, 10 Mar 2025)

  Changed paths:
    M clang/docs/UsersManual.rst
    M clang/lib/Driver/ToolChains/SPIRV.cpp
    M clang/lib/Driver/ToolChains/SPIRV.h
    M clang/test/Driver/spirv-openmp-toolchain.c
    M clang/test/Driver/spirv-toolchain.cl

  Log Message:
  -----------
  [clang][SPIR-V] Use the SPIR-V backend by default (#129545)

The SPIR-V backend is now a supported backend, and we believe it is
ready to be used by default in Clang over the SPIR-V translator.

Some IR generated by Clang today, such as those requiring SPIR-V target
address spaces, cannot be compiled by the translator for reasons in this
[RFC](https://discourse.llvm.org/t/rfc-the-spir-v-backend-should-change-its-address-space-mappings/82640),
so we expect even more programs to work as well.

Enable it by default, but keep some of the code as it is still called by
the HIP toolchain directly.

---------

Signed-off-by: Sarnie, Nick <nick.sarnie at intel.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list