summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-11-04 10:40:48 -0800
committerJason Ekstrand <[email protected]>2015-01-15 07:19:00 -0800
commitfbc443ad564a46e105e0b1d7a12a6f2b07c56b1d (patch)
treef89c9acb0470f734f143a165176396ab039cd9a0 /src/glsl/nir/nir.h
parentf86902e75d989b781be36ced5dc98dfc0cd34b7b (diff)
nir: Add an initialization function for SSA definitions
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r--src/glsl/nir/nir.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h
index c48bde81c7b..558ec914044 100644
--- a/src/glsl/nir/nir.h
+++ b/src/glsl/nir/nir.h
@@ -1278,6 +1278,10 @@ typedef bool (*nir_foreach_src_cb)(nir_src *src, void *state);
bool nir_foreach_dest(nir_instr *instr, nir_foreach_dest_cb cb, void *state);
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);
+
/* visits basic blocks in source-code order */
typedef bool (*nir_foreach_block_cb)(nir_block *block, void *state);
bool nir_foreach_block(nir_function_impl *impl, nir_foreach_block_cb cb,