summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-11-04 17:18:48 -0800
committerJason Ekstrand <[email protected]>2015-01-15 07:19:00 -0800
commit7de6b7fc3ecd771c11acab251d3c432ea680b811 (patch)
treeba503e464a60e2792c061949759590441aaefc5d /src/glsl/nir/nir.h
parent946012f10f93f249444436dc780ae74d477e44a3 (diff)
nir: Add a function for rewriting all the uses of a SSA def
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r--src/glsl/nir/nir.h1
1 files changed, 1 insertions, 0 deletions
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);