[PATCH 69/79] [Backport to 15] Backport spirv-preserve-auxdata changes (#2180)
authorNick Sarnie <sarnex@users.noreply.github.com>
Mon, 16 Oct 2023 11:01:08 +0000 (11:01 +0000)
committerAndreas Beckmann <anbe@debian.org>
Thu, 14 Mar 2024 19:01:08 +0000 (20:01 +0100)
commita0e8f1ebee037c9ad1c70e371503218086472940
treeb75c1018086f43c3b366bd78bcd90c4eea2311e3
parent8ba0ae91e04249fbafe751a741b1a7b8baf6b88f
[PATCH 69/79] [Backport to 15] Backport spirv-preserve-auxdata changes (#2180)

Backport the below changes to 15:

f729c49
89d658c
9823690
d498f48
d24b9c6

I made the following changes that are not in the original changes:

Use llvm::Optional instead of std::optional
Port tests to not use opaque pointers and related flags
Fix patch fail due to missing unrelated function in this branch

Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
Gbp-Pq: Name 0069-Backport-to-15-Backport-spirv-preserve-auxdata-chang.patch
19 files changed:
include/LLVMSPIRVOpts.h
lib/SPIRV/SPIRVReader.cpp
lib/SPIRV/SPIRVReader.h
lib/SPIRV/SPIRVWriter.cpp
lib/SPIRV/SPIRVWriter.h
lib/SPIRV/libSPIRV/NonSemantic.AuxData.h [new file with mode: 0644]
lib/SPIRV/libSPIRV/SPIRVEnum.h
lib/SPIRV/libSPIRV/SPIRVExtInst.h
lib/SPIRV/libSPIRV/SPIRVInstruction.h
lib/SPIRV/libSPIRV/SPIRVModule.cpp
lib/SPIRV/libSPIRV/SPIRVModule.h
lib/SPIRV/libSPIRV/SPIRVStream.cpp
lib/SPIRV/libSPIRV/SPIRVStream.h
test/extensions/KHR/SPV_KHR_non_semantic_info/preserve-all-function-attributes-attrkind.ll [new file with mode: 0644]
test/extensions/KHR/SPV_KHR_non_semantic_info/preserve-all-function-attributes-crash.ll [new file with mode: 0644]
test/extensions/KHR/SPV_KHR_non_semantic_info/preserve-all-function-attributes.ll [new file with mode: 0644]
test/extensions/KHR/SPV_KHR_non_semantic_info/preserve-all-function-metadata-debug.ll [new file with mode: 0644]
test/extensions/KHR/SPV_KHR_non_semantic_info/preserve-all-function-metadata.ll [new file with mode: 0644]
tools/llvm-spirv/llvm-spirv.cpp