[all-commits] [llvm/llvm-project] 06ec47: [SPIRV] Handle unknown intrinsics (#166284)

Alex Voicu via All-commits all-commits at lists.llvm.org
Thu Nov 6 02:43:19 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 06ec47055ad1f085e64edca3f94f34f4da053ba0
      https://github.com/llvm/llvm-project/commit/06ec47055ad1f085e64edca3f94f34f4da053ba0
  Author: Alex Voicu <alexandru.voicu at amd.com>
  Date:   2025-11-06 (Thu, 06 Nov 2025)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVPrepareFunctions.cpp
    A llvm/test/CodeGen/SPIRV/allow_unknown_intrinsics.ll

  Log Message:
  -----------
  [SPIRV] Handle unknown intrinsics (#166284)

This ports rather useful functionality that was already available in the
Translator, and was mostly implemented in the BE. Today, if we encounter
an unknown intrinsic, we pipe it through and hope for the best, which in
practice yields either obtuse ISEL errors, or potentially impossible to
use SPIR-V. With this change, if instructed via a newly added
`--spv-allow-unknown-intrinsics` flag, we emit allowed intrinsics as
calls to extern (import) functions. The test is also mostly lifted from
the Translator.



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