nir: add a way to print the deref chain
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 19 Dec 2018 20:13:46 +0000 (12:13 -0800)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 2 Jan 2019 18:09:04 +0000 (10:09 -0800)
commit7d6babf995d48d64e383c4180f9b660522958f86
tree9f1b69d71c0431280b52b22710eecf643f03231a
parenta2596450ac7330c8965c819491038fb1ad454333
nir: add a way to print the deref chain

Makes debugging easier when we care about the deref chain and not the
deref instruction itself.  To make it take a const pointer, constify
some of the static functions in nir_print.c.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/nir/nir.h
src/compiler/nir/nir_print.c