From 7de6b7fc3ecd771c11acab251d3c432ea680b811 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 4 Nov 2014 17:18:48 -0800 Subject: nir: Add a function for rewriting all the uses of a SSA def Reviewed-by: Connor Abbott --- src/glsl/nir/nir.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/glsl/nir/nir.h') diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index 558ec914044..5933b5dc447 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -1281,6 +1281,7 @@ bool nir_foreach_src(nir_instr *instr, nir_foreach_src_cb cb, void *state); void nir_ssa_def_init(nir_function_impl *impl, nir_instr *instr, nir_ssa_def *def, unsigned num_components, const char *name); +void nir_ssa_def_rewrite_uses(nir_ssa_def *def, nir_src new_src, void *mem_ctx); /* visits basic blocks in source-code order */ typedef bool (*nir_foreach_block_cb)(nir_block *block, void *state); -- cgit v1.2.3