diff options
author | Jason Ekstrand <[email protected]> | 2014-12-12 11:13:10 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-15 07:20:20 -0800 |
commit | d5410bd8f65b8d0f845dc8beccd498b6fa098660 (patch) | |
tree | 4d944b67568f4e49e7c5e91f85ad057593321f11 /src/glsl/nir/nir.h | |
parent | 0e145a951e64e0b955e8315e22edf9e2ab4581ec (diff) |
nir: Add an algebraic optimization pass
This pass uses the previously built algebraic transformations framework and
should act as an example for anyone else wanting to make an algebraic
transformation pass for NIR.
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r-- | src/glsl/nir/nir.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index e6ddb7ee6a7..f3845f9e391 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -1398,6 +1398,8 @@ void nir_convert_to_ssa_impl(nir_function_impl *impl); void nir_convert_to_ssa(nir_shader *shader); void nir_convert_from_ssa(nir_shader *shader); +bool nir_opt_algebraic(nir_shader *shader); + bool nir_opt_global_to_local(nir_shader *shader); bool nir_copy_prop_impl(nir_function_impl *impl); |