nir: Make nir_copy_deref follow the "clone" pattern
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 24 Dec 2016 17:42:34 +0000 (09:42 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 30 Dec 2016 20:38:04 +0000 (12:38 -0800)
commit134a5ad31c8d39219f241f7a7cad246a6864c74b
treef31ba3874da61a7d6a75fd13c9dc89f42339a873
parent832dddcf91f168ab057cb5c7f6914b24ae6b864c
nir: Make nir_copy_deref follow the "clone" pattern

We rename it to nir_deref_clone, re-order the sources to match the other
clone functions, and expose nir_deref_var_clone.  This past part, in
particular, lets us get rid of quite a few lines since we no longer have
to call nir_copy_deref and wrap it in deref_as_var.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
13 files changed:
src/compiler/glsl/glsl_to_nir.cpp
src/compiler/nir/nir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_builder.h
src/compiler/nir/nir_inline_functions.c
src/compiler/nir/nir_lower_indirect_derefs.c
src/compiler/nir/nir_lower_tex.c
src/compiler/nir/nir_lower_var_copies.c
src/compiler/nir/nir_split_var_copies.c
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_glsl450.c
src/compiler/spirv/vtn_variables.c
src/intel/vulkan/anv_nir_lower_input_attachments.c