nir: Add helpers for working with deref instructions
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 16 Mar 2018 08:15:47 +0000 (01:15 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 23 Jun 2018 03:15:53 +0000 (20:15 -0700)
commita80fa2766ec1e3e6575d06254e42da5868f43885
treeca670e685a0468973d2f677597974f533cc86331
parent5286b5d832b82c7886c14328c3853eaa002bae99
nir: Add helpers for working with deref instructions

This commit adds a pass for lowering deref instructions to deref chains
as well as some smaller helpers to ease the transition.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Acked-by: Rob Clark <robdclark@gmail.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/Makefile.sources
src/compiler/nir/meson.build
src/compiler/nir/nir.h
src/compiler/nir/nir_builder.h
src/compiler/nir/nir_deref.c [new file with mode: 0644]