[llvm] [SPIR-V] Fix truncated LinkageAttributes OpDecorate for numeric-named functions (PR #207332)
Arseniy Obolenskiy via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 6 06:47:52 PDT 2026
================
@@ -0,0 +1,28 @@
+; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
+
+; CHECK: OpDecorate %[[#FN:]] LinkageAttributes "" Export
+; A spir_kernel is an entry point and must not get a LinkageAttributes decoration.
----------------
aobolensk wrote:
Added kernel name check
https://github.com/llvm/llvm-project/pull/207332
More information about the llvm-commits
mailing list