[PATCH 80/85] [Backport to 15] Fix allowed types for OpConstantNull (#2361)
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Thu, 15 Feb 2024 13:00:43 +0000 (14:00 +0100)
committerAndreas Beckmann <anbe@debian.org>
Thu, 14 Mar 2024 19:01:08 +0000 (20:01 +0100)
commit9bbf661c9529824ceabb44a1dc1c908f9afd4d76
treeed9f12019eb284ba42de7b8f6e446ccdf48355af
parent4043a271be004dafcd24c8363a1540cf6bdcea77
[PATCH 80/85] [Backport to 15] Fix allowed types for OpConstantNull (#2361)

The SPIR-V Specification allows `OpConstantNull` types to be scalar or
vector booleans, integers, or floats.  Update an assert for this and
add a SPIR-V -> LLVM IR test.

(cherry picked from commit 9ec969c1c379bde69522b3b9278e5f7aa1a2c9f9)

Gbp-Pq: Name 0080-Backport-to-15-Fix-allowed-types-for-OpConstantNull-.patch
lib/SPIRV/libSPIRV/SPIRVValue.h
test/OpConstantNull.spvasm [new file with mode: 0644]