[PATCH 39/79] [DebugInfo] Add Flag parameter to DebugTypeBasic (#1965)
authorDmitry Sidorov <dmitry.sidorov@intel.com>
Wed, 26 Apr 2023 10:20:30 +0000 (12:20 +0200)
committerAndreas Beckmann <anbe@debian.org>
Thu, 14 Mar 2024 19:01:08 +0000 (20:01 +0100)
commitd9b3bb0c30cbc6be598a1aef6a3371f3d6e65a15
treeb2a97006e093968586e6ca667bcb6ace892062ca
parentdfefa9e37f971273b20b3de953c39f5918d03b56
[PATCH 39/79] [DebugInfo] Add Flag parameter to DebugTypeBasic (#1965)

It can only be FlagUnknownPhysicalLayout. There is no way we can
generate it LLVM environment and get use of it, hence the patch just
ignores it if it come from another SPIR-V generator.

In general, there are following possible debug flags for DIBasicType:
BigEndian, LittleEndian and Artificial. There is not way that clang will
ever generate them, but that can be produced by manually writing
assembly and transforming it to LLVM IR. While it can be potential
improvement for the future - I don't see it useful to add to the spec
and implementation right now.

Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
Gbp-Pq: Name 0039-DebugInfo-Add-Flag-parameter-to-DebugTypeBasic-1965.patch
lib/SPIRV/LLVMToSPIRVDbgTran.cpp
lib/SPIRV/SPIRVToLLVMDbgTran.cpp
lib/SPIRV/libSPIRV/SPIRV.debug.h
test/DebugInfo/NonSemantic/basic-type-with-flag.spt [new file with mode: 0644]