compiler/types: Use a string table for builtin type names
authorCaio Oliveira <caio.oliveira@intel.com>
Tue, 12 Sep 2023 20:43:09 +0000 (13:43 -0700)
committerMarge Bot <emma+marge@anholt.net>
Sat, 16 Sep 2023 15:17:01 +0000 (15:17 +0000)
commitedd3cd67c2f69a81fec0595ec1469a71521d6043
treec4ce707d3e52c9d70bc5c393e1400a92137b3daf
parent53149cdd6e161a0421bb835fe9cc9232243e72b1
compiler/types: Use a string table for builtin type names

This avoids the relocations for each of the builtin type names, allowing
all the builtin data to be loaded in read-only memory.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25191>
src/compiler/builtin_types_c.py
src/compiler/glsl_types.h
src/compiler/nir_types.cpp