nir: Handle all array stride cases in nir_deref_instr_array_stride
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 27 Aug 2020 16:59:54 +0000 (11:59 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 3 Sep 2020 18:02:50 +0000 (18:02 +0000)
commit0654a9e82307b854824fc1092a8b79632a2703c0
tree843288f06724a5476b8238d157efc4ff6abd625c
parent878a8daca6bfc856308dda7d265964d93feb05ae
nir: Handle all array stride cases in nir_deref_instr_array_stride

This renames it to drop the ptr_as and makes it handle all of the stride
cases.  There's a bit of a tricky bit in here around Booleans but we
currently use 32-bit for those always.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6472>
src/amd/llvm/ac_nir_to_llvm.c
src/compiler/nir/nir.h
src/compiler/nir/nir_deref.c
src/compiler/nir/nir_lower_io.c
src/compiler/nir/nir_opt_load_store_vectorize.c
src/compiler/nir/nir_repair_ssa.c
src/compiler/nir/nir_to_lcssa.c