[all-commits] [llvm/llvm-project] af7728: [mlir][spirv] Add SPIR-V NonSemantic.Graph.DebugIn...

Davide Grohmann via All-commits all-commits at lists.llvm.org
Thu May 28 01:39:42 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af772866888eb2e2053b5f4d784510006d760e62
      https://github.com/llvm/llvm-project/commit/af772866888eb2e2053b5f4d784510006d760e62
  Author: Davide Grohmann <davide.grohmann at arm.com>
  Date:   2026-05-28 (Thu, 28 May 2026)

  Changed paths:
    A mlir/include/mlir/Target/SPIRV/SPIRVExtInstSets.h
    M mlir/lib/Conversion/TosaToSPIRVTosa/TosaToSPIRVTosaPass.cpp
    M mlir/lib/Target/SPIRV/Deserialization/DeserializeOps.cpp
    M mlir/lib/Target/SPIRV/Deserialization/Deserializer.h
    M mlir/lib/Target/SPIRV/Serialization/SerializeOps.cpp
    M mlir/lib/Target/SPIRV/Serialization/Serializer.cpp
    M mlir/lib/Target/SPIRV/Serialization/Serializer.h
    M mlir/lib/Target/SPIRV/TranslateRegistration.cpp
    R mlir/test/Target/SPIRV/debug-negative.mlir
    A mlir/test/Target/SPIRV/graph-debug-info-negative.mlir
    A mlir/test/Target/SPIRV/graph-debug-info.mlir
    M mlir/unittests/Dialect/SPIRV/DeserializationTest.cpp

  Log Message:
  -----------
  [mlir][spirv] Add SPIR-V NonSemantic.Graph.DebugInfo (#199519)

Add serialization and deserialization support for the SPIR-V
NonSemantic.Graph.DebugInfo.1 extended instruction set used by ARM graph
modules.
    
When debug info emission is enabled, serialize DebugGraph,
DebugOperation,
and DebugTensor records for graph objects, TOSA operations, graph
tensors,
and tensor constants. Emit the records after the SPIR-V objects they
reference, and make DebugOperation point at the DebugGraph result id.
    
Deserialize these records back into MLIR locations and diagnose
malformed
or undefined debug-info references.
    
Enable SPV_KHR_non_semantic_info in the default TOSA-to-SPIR-V target
environment so debug info can be emitted by default.
    
Specification:

https://github.com/KhronosGroup/SPIRV-Registry/blob/main/nonsemantic/NonSemantic.Graph.DebugInfo.asciidoc

Signed-off-by: Mohammadreza Ameri Mahabadian <mohammadreza.amerimahabadian at arm.com>
Signed-off-by: Davide Grohmann <davide.grohmann at arm.com>
Co-authored-by: Mohammadreza Ameri Mahabadian <mohammadreza.amerimahabadian at arm.com>



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