diff options
author | Jason Ekstrand <[email protected]> | 2016-02-13 17:08:57 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-03-24 15:20:44 -0700 |
commit | 79dec93ead6e3b95b1240a9d843d617a88ee9179 (patch) | |
tree | aac952fb882917da62644f5028826e8cf0ee3dca /src/compiler/nir/Makefile.sources | |
parent | 8d61d7252433a0470b441c70085391d3dd4c04bb (diff) |
nir: Add return lowering pass
This commit adds a NIR pass for lowering away returns in functions. If the
return is in a loop, it is lowered to a break. If it is not in a loop,
it's lowered away by moving/deleting code as needed.
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/compiler/nir/Makefile.sources')
-rw-r--r-- | src/compiler/nir/Makefile.sources | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/nir/Makefile.sources b/src/compiler/nir/Makefile.sources index c1493551192..b9506e8a393 100644 --- a/src/compiler/nir/Makefile.sources +++ b/src/compiler/nir/Makefile.sources @@ -37,6 +37,7 @@ NIR_FILES = \ nir_lower_io.c \ nir_lower_outputs_to_temporaries.c \ nir_lower_phis_to_scalar.c \ + nir_lower_returns.c \ nir_lower_samplers.c \ nir_lower_system_values.c \ nir_lower_tex.c \ |