util: Use an opaque type for linear context
authorCaio Oliveira <caio.oliveira@intel.com>
Mon, 18 Sep 2023 08:51:13 +0000 (01:51 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 25 Sep 2023 17:26:17 +0000 (17:26 +0000)
commit63ab9855114ebde337e7ea99e1a93659717339b7
treec648f69834dd3a1920013be754b2d64be9e853bb
parentb269cadf5680e688286660a507fd64d4f3145710
util: Use an opaque type for linear context

In the linear allocation only the parent (context) can be used
to allocate new children, so let's use an opaque type to identify
the linear context.  This is similar to what's done in GC allocator.

Update the documentation and a couple of function names to
refer to linear context instead of linear parent.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25280>
17 files changed:
src/compiler/glsl/ast_type.cpp
src/compiler/glsl/glcpp/glcpp-lex.l
src/compiler/glsl/glcpp/glcpp-parse.y
src/compiler/glsl/glcpp/glcpp.h
src/compiler/glsl/glsl_lexer.ll
src/compiler/glsl/glsl_parser.yy
src/compiler/glsl/glsl_parser_extras.cpp
src/compiler/glsl/glsl_parser_extras.h
src/compiler/glsl/glsl_symbol_table.cpp
src/compiler/glsl/glsl_symbol_table.h
src/compiler/glsl/opt_dead_code_local.cpp
src/compiler/glsl_types.cpp
src/compiler/nir/nir_opt_combine_stores.c
src/compiler/nir/nir_opt_copy_prop_vars.c
src/compiler/nir/tests/vars_tests.cpp
src/util/ralloc.c
src/util/ralloc.h