nir: Delete most of the constant_initializer support
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 16 Jul 2016 00:17:40 +0000 (17:17 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 5 Dec 2016 23:40:09 +0000 (15:40 -0800)
commit50e0b0bee3fb97089cf9913af7a0c980dfce6dce
tree943f3e970522698601dfc8871797d06cc50c8551
parent2f19c19b5de66c4966fc5f5926efe5d435e505db
nir: Delete most of the constant_initializer support

Constant initializers have been a constant (ha!) pain for quite some time.
While they're useful from a language perspective, people writing passes or
backends really don't want deal with them most of the time.  This commit
removes most of the constant initializer support from NIR.  It is expected
that you call nir_lower_constant_initializers VERY EARLY to ensure that
they're gone before you do anything interesting.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_inline_functions.c
src/compiler/nir/nir_lower_io_to_temporaries.c
src/compiler/nir/nir_lower_locals_to_regs.c
src/compiler/nir/nir_lower_vars_to_ssa.c