[PATCH 30/79] [Backport to 15] Preserve invalid SPIRV source lang literal in module...
authorMateusz Chudyk <mateuszchudyk@gmail.com>
Thu, 4 May 2023 11:32:55 +0000 (13:32 +0200)
committerAndreas Beckmann <anbe@debian.org>
Thu, 8 Feb 2024 21:48:18 +0000 (22:48 +0100)
commit111d23c44537b56ce2206f39242df97178da6075
treeac47910b6a913f08a696c8ea54d283dd52d7557e
parent9a68ef4cea1031286e7fd1fa5a6bb4dce736169a
[PATCH 30/79] [Backport to 15] Preserve invalid SPIRV source lang literal in module metadata (#1951) (#1980)

Some SPIR-V producers generate invalid source language value (invalid =
other than the enum values defined in spv::SourceLanguage). While in
many cases this is rightly translated to DW_LANG_OpenCL, the original
source language value should be preserved in LLVM module metadata for
later use by LLVM IR consumers.

Co-authored-by: Michal Paszkowski <michal@paszkowski.org>
Gbp-Pq: Name 0030-Backport-to-15-Preserve-invalid-SPIRV-source-lang-li.patch
lib/SPIRV/SPIRVToLLVMDbgTran.cpp
lib/SPIRV/libSPIRV/SPIRV.debug.h
test/DebugInfo/InvalidSourceLanguageSPIRVtoLLVM.spvasm [new file with mode: 0644]