[PATCH 22/79] [Backport to 15][DebugInfo] Add DebugTypeArrayDynamic translation ...
authorDmitry Sidorov <dmitry.sidorov@intel.com>
Wed, 8 Mar 2023 18:22:53 +0000 (19:22 +0100)
committerAndreas Beckmann <anbe@debian.org>
Thu, 14 Mar 2024 19:01:08 +0000 (20:01 +0100)
commit72c2d97a27da850d91ca1a484133e4638931a9d4
treee2f6f903f0f6bfdfdef1e441bb012f9ee97413fc
parent053e6a578c2ab1e3a21458aa86b14d398f1497b5
[PATCH 22/79] [Backport to 15][DebugInfo] Add DebugTypeArrayDynamic translation (#1871)

This instruction describes a dynamic array, mostly for Fortran 90.

Unlike DebugTypeArray it has Data Location, Associated, Allocated
and Rank parameters. If the appropriate metadata parameters
appear in LLVM IR in DW_TAG_array_type metadata, then such
debug type becomes treated as dynamic array by the translator
(of course if the appropriate extended instruction set is enabled).

Spec:
https://github.com/KhronosGroup/SPIRV-Registry/pull/186

Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
Gbp-Pq: Name 0022-Backport-to-15-DebugInfo-Add-DebugTypeArrayDynamic-t.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
test/DebugInfo/NonSemanticKernel100/FortranArray.ll
test/DebugInfo/NonSemanticKernel100/FortranDynamicArrayExpr.ll [new file with mode: 0644]
test/DebugInfo/NonSemanticKernel100/FortranDynamicArrayVar.ll [new file with mode: 0644]