nir/deref: Expose nir_opt_deref_impl
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 4 Mar 2019 22:17:02 +0000 (16:17 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Wed, 6 Mar 2019 17:24:57 +0000 (17:24 +0000)
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir.h
src/compiler/nir/nir_deref.c

index c550f8339ed9e3a3adce5f12bb226780f2582a0b..5d6b15bc42f3fd59b28c056a1f5fd638fcbade42 100644 (file)
@@ -3325,6 +3325,7 @@ bool nir_opt_dead_cf(nir_shader *shader);
 
 bool nir_opt_dead_write_vars(nir_shader *shader);
 
+bool nir_opt_deref_impl(nir_function_impl *impl);
 bool nir_opt_deref(nir_shader *shader);
 
 bool nir_opt_find_array_copies(nir_shader *shader);
index 752bd7f86731cf97f3e11d117ca9c22be97b482e..c07a8c50691a5bb03d53e520770602c896011b02 100644 (file)
@@ -708,7 +708,7 @@ opt_deref_ptr_as_array(nir_builder *b, nir_deref_instr *deref)
    return true;
 }
 
-static bool
+bool
 nir_opt_deref_impl(nir_function_impl *impl)
 {
    bool progress = false;