[all-commits] [llvm/llvm-project] 6da24e: [clang-sycl-linker] Improve --spirv-dump-device-co...

Alexey Bader via All-commits all-commits at lists.llvm.org
Fri May 29 11:25:03 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6da24e4022f0cc6e97db939c1ea6df20dbb02ae6
      https://github.com/llvm/llvm-project/commit/6da24e4022f0cc6e97db939c1ea6df20dbb02ae6
  Author: Alexey Bader <alexey.bader at intel.com>
  Date:   2026-05-29 (Fri, 29 May 2026)

  Changed paths:
    M clang/test/OffloadTools/clang-sycl-linker/basic.ll
    A clang/test/OffloadTools/clang-sycl-linker/options.ll
    M clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp

  Log Message:
  -----------
  [clang-sycl-linker] Improve --spirv-dump-device-code and harden CLI handling (#200096)

Several small fixes and improvements to `clang-sycl-linker`'s
command-line
handling, plus completing the `--spirv-dump-device-code` option:

- **`--version`**: now exits with `EXIT_SUCCESS` after printing, instead
of
  falling through into the rest of `main`.
- **Empty input**: report a clear "No input files provided" error from
`getInput` rather than triggering an assertion deep inside
`linkDeviceCode`.
- **`--spirv-dump-device-code`**: previously parsed but ignored — now
actually
  copies each generated `.spv` file into the requested directory. The
  directory is created up-front (`mkdir -p` semantics) so a missing path
  produces a friendly diagnostic instead of a low-level copy errno.


Co-Authored-By: Claude Sonnet 4.6 <noreply at anthropic.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