nir: add callback to nir_remove_dead_variables()
[mesa.git] / src / compiler / nir / nir.h
index 9bf399698951b8767ffc83cbba5bb6319da73eb8..79973655f2637c846d41b073ecd42ee9b2b134b2 100644 (file)
@@ -4083,7 +4083,8 @@ bool nir_lower_vars_to_ssa(nir_shader *shader);
 
 bool nir_remove_dead_derefs(nir_shader *shader);
 bool nir_remove_dead_derefs_impl(nir_function_impl *impl);
-bool nir_remove_dead_variables(nir_shader *shader, nir_variable_mode modes);
+bool nir_remove_dead_variables(nir_shader *shader, nir_variable_mode modes,
+                               bool (*can_remove_var)(nir_variable *var));
 bool nir_lower_variable_initializers(nir_shader *shader,
                                      nir_variable_mode modes);