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