[llvm-branch-commits] [llvm] [WIP][SPIRV][Debug Info] Add support for emitting DebugFunction debug info instructions (PR #183122)

Manuel Carrasco via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Mar 6 07:06:30 PST 2026


================
@@ -0,0 +1,40 @@
+; RUN: llc --verify-machineinstrs --spv-emit-nonsemantic-debug-info --spirv-ext=+SPV_KHR_non_semantic_info -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
+; RUN: %if spirv-tools %{ llc --verify-machineinstrs --spv-emit-nonsemantic-debug-info --spirv-ext=+SPV_KHR_non_semantic_info -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
----------------
mgcarrasco wrote:

> Also, should we add some negative testing? I.e. checking that errors out when the flags are missing or the extensions are missing.

Ty. Existing tests already in main cover that: https://github.com/llvm/llvm-project/blob/6ecbc0c96e56602705dccada6414385d31b4a98b/llvm/test/CodeGen/SPIRV/debug-info/debug-compilation-unit.ll#L33

https://github.com/llvm/llvm-project/pull/183122


More information about the llvm-branch-commits mailing list