[llvm-branch-commits] [llvm] [SPIRV] Add support for NSDI DebugLocalVariable. (PR #221706)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Sep 7 05:25:50 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 182632 tests passed
* 3270 tests skipped
* 2 tests failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.CodeGen/SPIRV/debug-info/debug-local-variable-dbg-value.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc --verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown --spirv-ext=+SPV_KHR_non_semantic_info /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/debug-info/debug-local-variable-dbg-value.ll -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/debug-info/debug-local-variable-dbg-value.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc --verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown --spirv-ext=+SPV_KHR_non_semantic_info /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/debug-info/debug-local-variable-dbg-value.ll -o -
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/debug-info/debug-local-variable-dbg-value.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/debug-info/debug-local-variable-dbg-value.ll:18:14: error: CHECK-DAG: expected string not found in input
# | ; CHECK-DAG: OpExtInst [[VOID]] [[EXT]] DebugLocalVariable [[XNAME]] [[INT]] [[DS]] [[C8]] [[C0]] [[DF]] [[C0]] [[C1]]
# | ^
# | <stdin>:1:1: note: scanning from here
# | OpCapability Kernel
# | ^
# | <stdin>:1:1: note: with "VOID" equal to "%14"
# | OpCapability Kernel
# | ^
# | <stdin>:1:1: note: with "EXT" equal to "%8"
# | OpCapability Kernel
# | ^
# | <stdin>:1:1: note: with "XNAME" equal to "%12"
# | OpCapability Kernel
# | ^
# | <stdin>:1:1: note: with "INT" equal to "%23"
# | OpCapability Kernel
# | ^
# | <stdin>:1:1: note: with "DS" equal to "%19"
# | OpCapability Kernel
# | ^
# | <stdin>:1:1: note: with "C8" equal to "%25"
# | OpCapability Kernel
# | ^
# | <stdin>:1:1: note: with "C0" equal to "%18"
# | OpCapability Kernel
# | ^
# | <stdin>:1:1: note: with "DF" equal to "%27"
# | OpCapability Kernel
# | ^
# | <stdin>:1:1: note: with "C0" equal to "%18"
# | OpCapability Kernel
# | ^
# | <stdin>:1:1: note: with "C1" equal to "%16"
# | OpCapability Kernel
# | ^
# | <stdin>:35:8: note: possible intended match here
# | %29 = OpExtInst %14 %8 DebugLocalVariable %12 %23 %19 %25 %18 %27 %18 %28
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/debug-info/debug-local-variable-dbg-value.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: OpCapability Kernel
# | dag:18'0 { search range start (exclusive)
# | dag:18'1 error: no match found in search range
# | dag:18'2 with "VOID" equal to "%14"
# | dag:18'3 with "EXT" equal to "%8"
# | dag:18'4 with "XNAME" equal to "%12"
# | dag:18'5 with "INT" equal to "%23"
# | dag:18'6 with "DS" equal to "%19"
# | dag:18'7 with "C8" equal to "%25"
# | dag:18'8 with "C0" equal to "%18"
# | dag:18'9 with "DF" equal to "%27"
# | dag:18'10 with "C0" equal to "%18"
# | dag:18'11 with "C1" equal to "%16"
# | 2: OpCapability Addresses
# | 3: OpCapability Linkage
# | 4: OpExtension "SPV_KHR_non_semantic_info"
# | 5: %1 = OpExtInstImport "OpenCL.std"
# | 6: %8 = OpExtInstImport "NonSemantic.Shader.DebugInfo.100"
# | .
# | .
# | .
# | 30: %24 = OpExtInst %14 %8 DebugTypeFunction %18 %23 %23
# | 31: %25 = OpConstant %3 8
# | 32: %26 = OpConstant %3 136
# | 33: %27 = OpExtInst %14 %8 DebugFunction %11 %24 %19 %25 %18 %20 %11 %26 %25
# | 34: %28 = OpConstant %3 1
# | 35: %29 = OpExtInst %14 %8 DebugLocalVariable %12 %23 %19 %25 %18 %27 %18 %28
# | dag:18'12 ? possible intended match
# | 36: %30 = OpConstant %3 2
# | 37: %6 = OpFunction %3 None %4 ; -- Begin function passthrough
# | 38: %5 = OpFunctionParameter %3
# | 39: %2 = OpLabel
# | 40: %31 = OpExtInst %14 %8 DebugFunctionDefinition %27 %6
# | 41: %32 = OpExtInst %14 %8 DebugScope %27
# | 42: %33 = OpExtInst %14 %8 DebugLine %19 %25 %25 %28 %30
# | 43: ;DEBUG_VALUE: passthrough:x <- %0
# | 44: OpReturnValue %5
# | 45: OpFunctionEnd
# | 46: ; -- End function
# | dag:18'13 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.CodeGen/SPIRV/debug-info/debug-local-variable-records-and-retained.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc --verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown --spirv-ext=+SPV_KHR_non_semantic_info /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/debug-info/debug-local-variable-records-and-retained.ll -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/debug-info/debug-local-variable-records-and-retained.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc --verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown --spirv-ext=+SPV_KHR_non_semantic_info /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/debug-info/debug-local-variable-records-and-retained.ll -o -
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/debug-info/debug-local-variable-records-and-retained.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/debug-info/debug-local-variable-records-and-retained.ll:17:14: error: CHECK-DAG: expected string not found in input
# | ; CHECK-DAG: OpExtInst [[VOID]] [[EXT]] DebugLocalVariable [[NAME]] [[INT]] [[DS]] [[C3]] [[C0]] [[DF]] [[C0]]
# | ^
# | <stdin>:1:1: note: scanning from here
# | OpCapability Kernel
# | ^
# | <stdin>:1:1: note: with "VOID" equal to "%3"
# | OpCapability Kernel
# | ^
# | <stdin>:1:1: note: with "EXT" equal to "%7"
# | OpCapability Kernel
# | ^
# | <stdin>:1:1: note: with "NAME" equal to "%11"
# | OpCapability Kernel
# | ^
# | <stdin>:1:1: note: with "INT" equal to "%22"
# | OpCapability Kernel
# | ^
# | <stdin>:1:1: note: with "DS" equal to "%18"
# | OpCapability Kernel
# | ^
# | <stdin>:1:1: note: with "C3" equal to "%20"
# | OpCapability Kernel
# | ^
# | <stdin>:1:1: note: with "C0" equal to "%17"
# | OpCapability Kernel
# | ^
# | <stdin>:1:1: note: with "DF" equal to "%26"
# | OpCapability Kernel
# | ^
# | <stdin>:1:1: note: with "C0" equal to "%17"
# | OpCapability Kernel
# | ^
# | <stdin>:34:8: note: possible intended match here
# | %28 = OpExtInst %3 %7 DebugLocalVariable %11 %22 %18 %27 %17 %26 %17
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/debug-info/debug-local-variable-records-and-retained.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: OpCapability Kernel
# | dag:17'0 { search range start (exclusive)
# | dag:17'1 error: no match found in search range
# | dag:17'2 with "VOID" equal to "%3"
# | dag:17'3 with "EXT" equal to "%7"
# | dag:17'4 with "NAME" equal to "%11"
# | dag:17'5 with "INT" equal to "%22"
# | dag:17'6 with "DS" equal to "%18"
# | dag:17'7 with "C3" equal to "%20"
# | dag:17'8 with "C0" equal to "%17"
# | dag:17'9 with "DF" equal to "%26"
# | dag:17'10 with "C0" equal to "%17"
# | 2: OpCapability Addresses
# | 3: OpCapability Linkage
# | 4: OpExtension "SPV_KHR_non_semantic_info"
# | 5: %1 = OpExtInstImport "OpenCL.std"
# | 6: %7 = OpExtInstImport "NonSemantic.Shader.DebugInfo.100"
# | .
# | .
# | .
# | 29: %23 = OpExtInst %3 %7 DebugTypeFunction %17 %3
# | 30: %24 = OpConstant %13 1
# | 31: %25 = OpConstant %13 136
# | 32: %26 = OpExtInst %3 %7 DebugFunction %10 %23 %18 %24 %17 %19 %10 %25 %24
# | 33: %27 = OpConstant %13 3
# | 34: %28 = OpExtInst %3 %7 DebugLocalVariable %11 %22 %18 %27 %17 %26 %17
# | dag:17'11 ? possible intended match
# | 35: %29 = OpConstant %13 2
# | 36: %5 = OpFunction %3 None %4 ; -- Begin function f
# | 37: %2 = OpLabel
# | 38: %30 = OpExtInst %3 %7 DebugFunctionDefinition %26 %5
# | 39: %31 = OpExtInst %3 %7 DebugScope %26
# | 40: %32 = OpExtInst %3 %7 DebugLine %18 %27 %27 %24 %29
# | 41: ;DEBUG_VALUE: f:dup <- [%3+0]
# | 42: OpReturn
# | 43: OpFunctionEnd
# | 44: ; -- End function
# | dag:17'12 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/221706
More information about the llvm-branch-commits
mailing list