nir/opcodes: Add a helper function to generate reduce opcodes
authorNeil Roberts <nroberts@igalia.com>
Wed, 30 Jan 2019 09:58:48 +0000 (10:58 +0100)
committerNeil Roberts <nroberts@igalia.com>
Wed, 20 Nov 2019 13:09:43 +0000 (14:09 +0100)
commit2ec97e78a9ae4da59f175a5f24c3d6c062f36ca7
tree724d640822350a11098990341dcf40b734c1146d
parent9a96afb97e207134cc92ac38ecbcfcd6cd5282bb
nir/opcodes: Add a helper function to generate reduce opcodes

Adds binop_reduce_all_sizes which generates both 1-bit and 32-bit
versions of the reduce operation. This reduces the code duplication a
bit and will make it easier to later add 16-bit versions as well.

Reviewed-by: Rob Clark <robdclark@gmail.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/compiler/nir/nir_opcodes.py