[PATCH 13/79] [Backport to 15] Translate readnone attribute as function parameter...
authorDmitry Sidorov <dmitry.sidorov@intel.com>
Tue, 8 Nov 2022 09:40:39 +0000 (10:40 +0100)
committerAndreas Beckmann <anbe@debian.org>
Thu, 8 Feb 2024 21:48:18 +0000 (22:48 +0100)
commit872c11b13e2cad453754d6ee5f61bf087456989c
treefccb705e4cc0ffb6bce10a17c2ddaf18cb7231c7
parent766bbe9760451e3d16bae258f6a590e43cf0143d
[PATCH 13/79] [Backport to 15] Translate readnone attribute as function parameter attribute (#1697)

Community restricted readnone, readonly and writeonly attributes
to be only function parameter attributes. This patch aligns
the translator with llvm.org.

It also fixes a bug, when readnone attribute is being mapped
to NoWrite SPIR-V function parameter attribute.

Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
Gbp-Pq: Name 0013-Backport-to-15-Translate-readnone-attribute-as-funct.patch
14 files changed:
lib/SPIRV/SPIRVInternal.h
lib/SPIRV/SPIRVReader.cpp
lib/SPIRV/SPIRVUtil.cpp
lib/SPIRV/SPIRVWriter.cpp
test/transcoding/OpGenericPtrMemSemantics.ll
test/transcoding/OpImageSampleExplicitLod.ll
test/transcoding/OpSwitch32.ll
test/transcoding/OpSwitch64.ll
test/transcoding/bitcast.ll
test/transcoding/builtin_calls.ll
test/transcoding/builtin_function_readnone_attr.ll
test/transcoding/builtin_vars_arithmetics.ll
test/transcoding/isequal.ll
test/transcoding/unreachable.ll