summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir.h
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2015-10-27 21:34:56 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2015-12-23 13:49:56 -0800
commit98291b8f2cad24d6467cf35e00135e4b015cb1f2 (patch)
tree84d56367ddc342ea5c0fba415b379641883cbbd7 /src/glsl/nir/nir.h
parent86772c24885be27a7fa9473c471a8eaff54b2ee9 (diff)
downloadexternal_mesa3d-98291b8f2cad24d6467cf35e00135e4b015cb1f2.zip
external_mesa3d-98291b8f2cad24d6467cf35e00135e4b015cb1f2.tar.gz
external_mesa3d-98291b8f2cad24d6467cf35e00135e4b015cb1f2.tar.bz2
nir: Add a helper for creating a "bare" nir_function_impl
This is useful if you want to clone a single function_impl if, for instance, you wanted to do function inlining.
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r--src/glsl/nir/nir.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h
index 0cf5f80..2ae83b4 100644
--- a/src/glsl/nir/nir.h
+++ b/src/glsl/nir/nir.h
@@ -1696,6 +1696,8 @@ nir_function *nir_function_create(nir_shader *shader, const char *name);
nir_function_overload *nir_function_overload_create(nir_function *func);
nir_function_impl *nir_function_impl_create(nir_function_overload *func);
+/** creates a function_impl that isn't tied to any particular overload */
+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);