diff options
author | Jason Ekstrand <[email protected]> | 2015-01-14 12:41:15 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-15 07:20:24 -0800 |
commit | 55b5058e69859ba28c2f32de6edf5f0df3c6c28c (patch) | |
tree | 39ed8fba9383e1a5702943e05d8064e58182c932 /src/glsl/nir | |
parent | 4aa6162f6ecf96c7400c17c310eba0cfd0f5e083 (diff) |
nir: Rename lower_variables to lower_vars_to_ssa
The original name wasn't particularly descriptive. This one indicates that
it actually gives you SSA values as opposed to the old pass which lowered
variables to registers.
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir')
-rw-r--r-- | src/glsl/nir/nir.h | 2 | ||||
-rw-r--r-- | src/glsl/nir/nir_lower_vars_to_ssa.c (renamed from src/glsl/nir/nir_lower_variables.c) | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index e797ce24978..12cac728cff 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -1467,7 +1467,7 @@ void nir_lower_locals_to_regs(nir_shader *shader); void nir_lower_io(nir_shader *shader); -void nir_lower_variables(nir_shader *shader); +void nir_lower_vars_to_ssa(nir_shader *shader); void nir_remove_dead_variables(nir_shader *shader); diff --git a/src/glsl/nir/nir_lower_variables.c b/src/glsl/nir/nir_lower_vars_to_ssa.c index 4844b7c6ed0..2b40ededc7d 100644 --- a/src/glsl/nir/nir_lower_variables.c +++ b/src/glsl/nir/nir_lower_vars_to_ssa.c @@ -1131,7 +1131,7 @@ insert_phi_nodes(struct lower_variables_state *state) * with SSA definitions and SSA uses. */ static bool -nir_lower_variables_impl(nir_function_impl *impl) +nir_lower_vars_to_ssa_impl(nir_function_impl *impl) { struct lower_variables_state state; @@ -1206,10 +1206,10 @@ nir_lower_variables_impl(nir_function_impl *impl) } void -nir_lower_variables(nir_shader *shader) +nir_lower_vars_to_ssa(nir_shader *shader) { nir_foreach_overload(shader, overload) { if (overload->impl) - nir_lower_variables_impl(overload->impl); + nir_lower_vars_to_ssa_impl(overload->impl); } } |