nir/algebraic: Add lowering for 64-bit hadd and rhadd
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 19 Sep 2018 08:17:09 +0000 (01:17 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Jan 2020 00:18:57 +0000 (00:18 +0000)
commita483771045f49cb549e098394ceea309b5312c65
treef664b6acf0054e2ef4f5b9922ea68f4cc8d16d7e
parentea435560ee26b2669d923c8af6077cd0c7ac0ff4
nir/algebraic: Add lowering for 64-bit hadd and rhadd

v2: Rebase on 272e927d0e9 ("nir/spirv: initial handling of OpenCL.std
extension opcodes")

v3: Add a new lower_hadd64 flag that only applies to the 64-bit versions
of the instructions.

v4: Also enable the lowering when nir_lower_iadd64 is set.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> [v3]
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/767>
src/compiler/nir/nir.h
src/compiler/nir/nir_opt_algebraic.py