nir: Make an easier helper for setting up SSA defs.
authorEric Anholt <eric@anholt.net>
Wed, 21 Jan 2015 00:23:51 +0000 (16:23 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 22 Jan 2015 21:52:19 +0000 (13:52 -0800)
commit534a4ec82f09fa37e2134c994082e71c79b7d5ec
tree598ab6b45e9a47d997c7d09881a6bad54c805d45
parentc5be9c126d6ca9380cd381a5eb22554e4bb71a64
nir: Make an easier helper for setting up SSA defs.

Almost all instructions we nir_ssa_def_init() for are nir_dests, and you
have to keep from forgetting to set is_ssa when you do.  Just provide the
simpler helper, instead.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
13 files changed:
src/glsl/nir/glsl_to_nir.cpp
src/glsl/nir/nir.c
src/glsl/nir/nir.h
src/glsl/nir/nir_from_ssa.c
src/glsl/nir/nir_lower_atomics.c
src/glsl/nir/nir_lower_io.c
src/glsl/nir/nir_lower_locals_to_regs.c
src/glsl/nir/nir_lower_system_values.c
src/glsl/nir/nir_lower_var_copies.c
src/glsl/nir/nir_lower_vars_to_ssa.c
src/glsl/nir/nir_opt_peephole_select.c
src/glsl/nir/nir_search.c
src/glsl/nir/nir_to_ssa.c