nir: Unexpose _impl versions of copy_prop and dce
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 28 Oct 2015 17:11:11 +0000 (10:11 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 4 Nov 2015 01:06:48 +0000 (17:06 -0800)
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/nir/nir.h
src/glsl/nir/nir_opt_copy_propagate.c
src/glsl/nir/nir_opt_dce.c

index ac422514d526d59dcb8bd0cf86745686b0e5f9ab..874a03966befa83507288505c93b7b8963228b03 100644 (file)
@@ -2004,12 +2004,10 @@ bool nir_opt_constant_folding(nir_shader *shader);
 
 bool nir_opt_global_to_local(nir_shader *shader);
 
-bool nir_copy_prop_impl(nir_function_impl *impl);
 bool nir_copy_prop(nir_shader *shader);
 
 bool nir_opt_cse(nir_shader *shader);
 
-bool nir_opt_dce_impl(nir_function_impl *impl);
 bool nir_opt_dce(nir_shader *shader);
 
 bool nir_opt_dead_cf(nir_shader *shader);
index 71367d001bbc1126afb50536265d317a75366d50..96520f8a361714ea25ac40108b82eec72bfda6ca 100644 (file)
@@ -256,7 +256,7 @@ copy_prop_block(nir_block *block, void *_state)
    return true;
 }
 
-bool
+static bool
 nir_copy_prop_impl(nir_function_impl *impl)
 {
    bool progress = false;
index e0ebdc61c2fc22a9863591b65e493fd86b802129..603252825c3a0bfc051ccb63526ee75d8e162641 100644 (file)
@@ -145,7 +145,7 @@ delete_block_cb(nir_block *block, void *_state)
    return true;
 }
 
-bool
+static bool
 nir_opt_dce_impl(nir_function_impl *impl)
 {
    struct exec_list *worklist = ralloc(NULL, struct exec_list);