src/compiler: use new hash table and set creation helpers
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 11 Jan 2019 19:50:53 +0000 (11:50 -0800)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Mon, 14 Jan 2019 18:49:28 +0000 (10:49 -0800)
commit9fdded0cc34b4bdb87923707c05b8ceffb2f174c
treeb742e0cd4e33cd4766ed9f0b03c5c3eda2470556
parentee23e8b17c77fa94320168427fb8a10a84b50e94
src/compiler: use new hash table and set creation helpers

Replace calls to create hash tables and sets that use
_mesa_hash_pointer/_mesa_key_pointer_equal with the helpers
_mesa_pointer_hash_table_create() and _mesa_pointer_set_create().

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Acked-by: Eric Engestrom <eric@engestrom.ch>
42 files changed:
src/compiler/glsl/gl_nir_linker.c
src/compiler/glsl/glsl_to_nir.cpp
src/compiler/glsl/ir_array_refcount.cpp
src/compiler/glsl/ir_builder_print_visitor.cpp
src/compiler/glsl/ir_clone.cpp
src/compiler/glsl/ir_constant_expression.cpp
src/compiler/glsl/ir_function_detect_recursion.cpp
src/compiler/glsl/ir_print_visitor.cpp
src/compiler/glsl/ir_validate.cpp
src/compiler/glsl/ir_variable_refcount.cpp
src/compiler/glsl/link_functions.cpp
src/compiler/glsl/linker.cpp
src/compiler/glsl/loop_analysis.cpp
src/compiler/glsl/loop_analysis.h
src/compiler/glsl/lower_if_to_cond_assign.cpp
src/compiler/glsl/opt_constant_propagation.cpp
src/compiler/glsl/opt_constant_variable.cpp
src/compiler/glsl/opt_copy_propagation_elements.cpp
src/compiler/glsl/opt_function_inlining.cpp
src/compiler/glsl/standalone.cpp
src/compiler/nir/nir.c
src/compiler/nir/nir_clone.c
src/compiler/nir/nir_deref.c
src/compiler/nir/nir_from_ssa.c
src/compiler/nir/nir_inline_functions.c
src/compiler/nir/nir_linking_helpers.c
src/compiler/nir/nir_lower_global_vars_to_local.c
src/compiler/nir/nir_lower_io_arrays_to_elements.c
src/compiler/nir/nir_lower_io_to_scalar.c
src/compiler/nir/nir_lower_phis_to_scalar.c
src/compiler/nir/nir_lower_vars_to_ssa.c
src/compiler/nir/nir_opt_copy_prop_vars.c
src/compiler/nir/nir_opt_loop_unroll.c
src/compiler/nir/nir_print.c
src/compiler/nir/nir_propagate_invariant.c
src/compiler/nir/nir_remove_dead_variables.c
src/compiler/nir/nir_serialize.c
src/compiler/nir/nir_split_per_member_structs.c
src/compiler/nir/nir_split_vars.c
src/compiler/nir/nir_validate.c
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_cfg.c