[all-commits] [llvm/llvm-project] 7ef0ca: Reland "[HIPSPV] Add in-tree SPIR-V backend suppor...

Paulius Velesko via All-commits all-commits at lists.llvm.org
Fri Jul 31 12:24:09 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ef0ca2b13f9ee1061f2e3ec5a622f4ad74fe4b7
      https://github.com/llvm/llvm-project/commit/7ef0ca2b13f9ee1061f2e3ec5a622f4ad74fe4b7
  Author: Paulius Velesko <pvelesko at pglc.io>
  Date:   2026-07-31 (Fri, 31 Jul 2026)

  Changed paths:
    M clang/lib/Driver/ToolChains/HIPSPV.cpp
    M clang/lib/Driver/ToolChains/HIPSPV.h
    M clang/test/Driver/hipspv-link-static-library.hip
    A clang/test/Driver/hipspv-no-spirv-backend.hip
    M clang/test/Driver/hipspv-pass-plugin.hip
    M clang/test/Driver/hipspv-toolchain.hip
    M llvm/lib/Target/SPIRV/SPIRVSubtarget.cpp

  Log Message:
  -----------
  Reland "[HIPSPV] Add in-tree SPIR-V backend support for chipStar" (#213052)

Relands #206910 (reverted in #213088) with the fix for the breakage.

IsIntegratedBackendDefault() was tied to whether the SPIR-V backend is
registered, but it also controls whether clang collapses the compile and
backend
jobs, so builds without the SPIR-V target split every HIPSPV RDC device
compile
and failed hipspv-toolchain-rdc.hip. The default is back to the base
class value
and the translator fallback is decided in
constructLinkAndEmitSpirvCommand.
Third commit adds a test not guarded by spirv-registered-target.

Validated in X86;SPIRV and X86 only builds: driver tests pass in both,
and
non-RDC plus RDC (new driver) flows run for real emit spirv-val clean
modules
via the backend and via llvm-spirv respectively.



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