mesa/src/compiler/clc
Yonggang Luo 5b29463746 nir: Add function nir_function_set_impl
This function is added for create strong relationship between
nir_function_impl and nir_function.

So that nir_function->impl->function == nir_function is always true when
(nir_function->impl != NULL && nir_function->impl != NIR_SERIALIZE_FUNC_HAS_IMPL)

And indeed this invariant is already done in functions validate_function and validate_function_impl
of nir_validate

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23820>
2023-06-24 14:48:47 +00:00
..
clc.c nir/load_libclc: run some opt passes for everybody 2023-06-22 21:02:57 +00:00
clc.h clc: allow passing custom validator options 2023-06-19 22:54:59 +00:00
clc_helpers.cpp clc: allow passing custom validator options 2023-06-19 22:54:59 +00:00
clc_helpers.h clc: allow passing custom validator options 2023-06-19 22:54:59 +00:00
meson.build compiler/clc: Move related NIR passes to the common mesa clc 2023-06-20 03:43:41 +00:00
nir_clc_helpers.h nir/load_libclc: run some opt passes for everybody 2023-06-22 21:02:57 +00:00
nir_load_libclc.c nir: Add function nir_function_set_impl 2023-06-24 14:48:47 +00:00
nir_lower_libclc.c compiler/clc: Move related NIR passes to the common mesa clc 2023-06-20 03:43:41 +00:00