summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-10-27 21:34:56 -0700
committerJason Ekstrand <[email protected]>2016-03-12 15:48:36 -0800
commit066d3c115ec80270bffc4981fadcc7534ca351cd (patch)
treeb97cd99d7a5cf63d0677996a15930ba1d312cc00 /src/compiler/nir/nir.h
parent2ef4754a20be5fc7a6ecc2a8b6b8041637c998c6 (diff)
nir: Add a helper for creating a "bare" nir_function_impl
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r--src/compiler/nir/nir.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index ede56953d0a..40169adbcf2 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -1732,6 +1732,8 @@ nir_variable *nir_local_variable_create(nir_function_impl *impl,
nir_function *nir_function_create(nir_shader *shader, const char *name);
nir_function_impl *nir_function_impl_create(nir_function *func);
+/** creates a function_impl that isn't tied to any particular function */
+nir_function_impl *nir_function_impl_create_bare(nir_shader *shader);
nir_block *nir_block_create(nir_shader *shader);
nir_if *nir_if_create(nir_shader *shader);