nir: Rework nir_src_as_alu_instr to not take a pointer
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 17 Apr 2019 22:10:18 +0000 (17:10 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Thu, 18 Apr 2019 17:12:44 +0000 (17:12 +0000)
commit85c35885b383477ac4f92a11695fc85c6d45c98c
treeb9cb1e3ce1c4e484908019ec13d55ed9e7bae288
parenteee994e769259887ea17ec653ee1ea277416ea8b
nir: Rework nir_src_as_alu_instr to not take a pointer

Other nir_src_as_* functions just take a nir_src.  It's not that much
more memory copying and the constness preserving really isn't worth the
cognitive dissonance.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_instr_set.c
src/compiler/nir/tests/vars_tests.cpp
src/intel/compiler/brw_fs_nir.cpp