nir/opcodes: Add a helper function to generate the comparison binops
authorNeil Roberts <nroberts@igalia.com>
Wed, 30 Jan 2019 09:50:09 +0000 (10:50 +0100)
committerNeil Roberts <nroberts@igalia.com>
Wed, 20 Nov 2019 13:09:43 +0000 (14:09 +0100)
commit9a96afb97e207134cc92ac38ecbcfcd6cd5282bb
tree7f1299f436b037fb2d3c78f92cc76643c60953e3
parent7ecd8a347119eca76c18f125417efbc47de3b3ef
nir/opcodes: Add a helper function to generate the comparison binops

Adds binop_compare_all_sizes which generates both 1-bit and 32-bit
versions of the comparison 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