[all-commits] [llvm/llvm-project] a65771: [SPIR-V] Prefer llvm-spirv-<LLVM_VERSION_MAJOR> to...

Henry Linjamäki via All-commits all-commits at lists.llvm.org
Fri May 31 03:21:43 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a65771fce4a2f25f16d4b3918ad6a11370637f7b
      https://github.com/llvm/llvm-project/commit/a65771fce4a2f25f16d4b3918ad6a11370637f7b
  Author: Henry Linjamäki <henry.linjamaki at gmail.com>
  Date:   2024-05-31 (Fri, 31 May 2024)

  Changed paths:
    M clang/docs/UsersManual.rst
    M clang/lib/Driver/ToolChains/SPIRV.cpp
    M clang/test/Driver/hipspv-toolchain.hip
    M clang/test/Driver/spirv-toolchain.cl
    M clang/test/lit.site.cfg.py.in

  Log Message:
  -----------
  [SPIR-V] Prefer llvm-spirv-<LLVM_VERSION_MAJOR> tool (#77897)

Prefer using `llvm-spirv-<LLVM_VERSION_MAJOR>` tool (i.e.
`llvm-spirv-18`) over plain `llvm-spirv`. If the versioned tool is not
found in PATH, fall back to use the plain `llvm-spirv`.

An issue with the using `llvm-spirv` is that the one found in PATH might
be compiled against older LLVM version which could lead to crashes or
obscure bugs. For example, `llvm-spirv` distributed by Ubuntu links
against different LLVM version depending on the Ubuntu release (LLVM-10
in 20.04LTS, LLVM-13 in 22.04LTS).



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