[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, 14 Mar 2024 19:01:08 +0000 (20:01 +0100)
commitce859451a5d9e34792c49c55d3a7599d28724317
tree254c3ad0ffaaa15a57a700e4dce7e5e3d703d729
parent75cd968f63b891de91954a0989895beb8e295d90
[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