nir/from_ssa: Use nir_builder for emit_copy
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 24 Dec 2016 18:14:48 +0000 (10:14 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 30 Dec 2016 20:38:04 +0000 (12:38 -0800)
commitc8e06121654c14d6c4a5f6d1562aabc70072294c
tree6c8eff6ae9bccb87c06d92381cb574a05292447b
parent134a5ad31c8d39219f241f7a7cad246a6864c74b
nir/from_ssa: Use nir_builder for emit_copy

This lets us get rid of the void *mem_ctx parameter and make things a
bit more type safe.

Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/compiler/nir/nir_from_ssa.c