[all-commits] [llvm/llvm-project] 4c6f39: [Clang] Add standalone AMDGPU SPIR-V toolchain (#1...

Joseph Huber via All-commits all-commits at lists.llvm.org
Thu Jun 19 07:24:18 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4c6f398b866030c17fd94dcdca04f4df03c5214c
      https://github.com/llvm/llvm-project/commit/4c6f398b866030c17fd94dcdca04f4df03c5214c
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    M clang/lib/Driver/Driver.cpp
    M clang/lib/Driver/ToolChains/HIPAMD.cpp
    M clang/lib/Driver/ToolChains/HIPAMD.h
    A clang/test/Driver/spirv-amd-toolchain.c

  Log Message:
  -----------
  [Clang] Add standalone AMDGPU SPIR-V toolchain (#144576)

Summary:
The AMDGPU toolchain uses a different set of tools than the standard
SPIR-V toolchain. The linker wrapper prefers to invoke a linker via a
clang toolchain. To make that work we introduce
`--target=spirv64-amd-amdhsa` so that it creates the linking phases that
HIP prefers. Additionally, this can be used to make LLVM-IR / SPIR-V
from C/C++ that can be linked with the HIP output.



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