nir/deref: Add a has_complex_use helper
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 22 May 2019 20:00:20 +0000 (15:00 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 31 May 2019 01:08:03 +0000 (01:08 +0000)
commite84194686d1234f9c6e9ba02d223a61ad3ca7b6a
treea6aad7288cb7157c94f2e4f50c1c3caa4cf99f57
parent8948048c6f01209bac0051e41cd84c38853bd251
nir/deref: Add a has_complex_use helper

This lets passes easily detect derefs which have uses that fall outside
the standard load/store/copy pattern so they can bail appropriately.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_deref.c