[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, 8 Feb 2024 21:48:18 +0000 (22:48 +0100)
commit44a4747ad85c3719671b132c3a49895db00ce584
tree90c5cf749bafb07b71f36abae5860679436204e1
parenta79bc2541665a19c985f2a31c858eadc97359c17
[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]