summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-03-04 16:17:02 -0600
committerJason Ekstrand <[email protected]>2019-03-06 17:24:57 +0000
commitf25ca337b40f1d5846ac146f00fba77b1610be37 (patch)
treedb95a58dafa1c2076ed58fc85566d323c56d855b /src/compiler
parentde8d80f9cc210367246382c0f1cb30c64fd7da4f (diff)
nir/deref: Expose nir_opt_deref_impl
Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Jordan Justen <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/nir/nir.h1
-rw-r--r--src/compiler/nir/nir_deref.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index c550f8339ed..5d6b15bc42f 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -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);
diff --git a/src/compiler/nir/nir_deref.c b/src/compiler/nir/nir_deref.c
index 752bd7f8673..c07a8c50691 100644
--- a/src/compiler/nir/nir_deref.c
+++ b/src/compiler/nir/nir_deref.c
@@ -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;