nir: Add a pass for lower indirect variable dereferences
authorJason Ekstrand <jason.ekstrand@intel.com>
Sun, 14 Feb 2016 01:45:37 +0000 (17:45 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 8 Mar 2016 18:41:54 +0000 (10:41 -0800)
commit14b18aba89026204043d2e0d441e6be0e1af4aca
treebe2cca0a736ce96f5df76be7bbc1dcec859e0c03
parentef76ea4ba97d0ac122491fd3f1b2bbb8e4163150
nir: Add a pass for lower indirect variable dereferences

This new pass lowers load/store_var intrinsics that act on indirect derefs
to if-ladder of direct load/store_var intrinsics.  The if-ladders perform a
simple binary search on the indirect.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/compiler/Makefile.sources
src/compiler/nir/Makefile.sources
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_indirect_derefs.c [new file with mode: 0644]