[PATCH 75/79] Preserve DIExpression in DIGlobalVariableExpression (#2324)
authorLU-JOHN <111294400+LU-JOHN@users.noreply.github.com>
Wed, 31 Jan 2024 13:08:38 +0000 (07:08 -0600)
committerAndreas Beckmann <anbe@debian.org>
Thu, 14 Mar 2024 19:01:08 +0000 (20:01 +0100)
commitc18fe5e21da034dba7ce6d971919c0fe6c016ab2
tree423af65bfa9ce2cc08eb268cb299a9e5f2b31ce6
parented40ab4868bc85dd864c0604cd3d9415991d7ae3
[PATCH 75/79] Preserve DIExpression in DIGlobalVariableExpression (#2324)

Ensure that SPIR-V that uses a DebugGlobalVariable's Variable field to hold an Expression
can be reverse translated. A Variable field can be used to hold an Expression in order to
preserve a DIExpression in a DIGlobalVariableExpression in LLVM IR.

Signed-off-by: Lu, John <john.lu@intel.com>
Gbp-Pq: Name 0075-Preserve-DIExpression-in-DIGlobalVariableExpression-.patch
lib/SPIRV/SPIRVToLLVMDbgTran.cpp
test/DebugInfo/DebugInfo-GV-with-DIE.spt [new file with mode: 0644]