[PATCH 35/79] [Backport to 15][DebugInfo] Support translation of DebugFunctionDefinit...
authorViktoria Maximova <viktoria.maksimova@intel.com>
Thu, 20 Apr 2023 21:22:52 +0000 (14:22 -0700)
committerAndreas Beckmann <anbe@debian.org>
Thu, 8 Feb 2024 21:48:18 +0000 (22:48 +0100)
commitc7ff9b2004108c5221d10c14096d7639e022c3c1
tree700fc7b37c10dafcfe0582d2eb4f223a42358b60
parent54a89f302727b8660954d4e07da1955b9d42c6e3
[PATCH 35/79] [Backport to 15][DebugInfo] Support translation of DebugFunctionDefinition instruction (#1961)

DebugFunction does not have an Function Id operand in NonSemantic.Shader debug info specification. It's been replaced by the whole new DebugFunctionDefinition instruction to avoid forward references.

This instruction must appear in the entry basic block of an OpFunction.

Specification:
https://github.com/KhronosGroup/SPIRV-Registry/blob/main/nonsemantic/NonSemantic.Shader.DebugInfo.100.asciidoc#DebugFunctionDefinition

Gbp-Pq: Name 0035-Backport-to-15-DebugInfo-Support-translation-of-Debu.patch
lib/SPIRV/LLVMToSPIRVDbgTran.cpp
lib/SPIRV/LLVMToSPIRVDbgTran.h
lib/SPIRV/SPIRVToLLVMDbgTran.cpp
lib/SPIRV/SPIRVToLLVMDbgTran.h
lib/SPIRV/libSPIRV/SPIRV.debug.h
lib/SPIRV/libSPIRV/SPIRVExtInst.h
lib/SPIRV/libSPIRV/SPIRVModule.cpp
test/DebugInfo/NonSemantic/DebugFunction.cl
test/DebugInfo/NonSemantic/Shader200/DebugInfoTargetFunction.ll
test/DebugInfo/NonSemantic/Shader200/FortranComplex.ll