mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-20 15:38:19 +02:00
We add a bunch of new helpers to avoid the need to touch >parent_instr, including the full set of: * nir_def_is_* * nir_def_as_*_or_null * nir_def_as_* [assumes the right instr type] * nir_src_is_* * nir_src_as_* * nir_scalar_is_* * nir_scalar_as_* Plus nir_def_instr() where there's no more suitable helper. Also an existing helper is renamed to unify all the names, while we're churning the tree: * nir_src_as_alu_instr -> nir_src_as_alu ..and then we port the tree to use the helpers as much as possible, using nir_def_instr() where that does not work. Acked-by: Marek Olšák <maraeo@gmail.com> --- To eliminate nir_def::parent_instr we need to churn the tree anyway, so I'm taking this opportunity to clean up a lot of NIR patterns. Co-authored-by: Konstantin Seurer <konstantin.seurer@gmail.com> Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38313> |
||
|---|---|---|
| .. | ||
| algebraic_parser_test.py | ||
| algebraic_tests.cpp | ||
| builder_tests.cpp | ||
| comparison_pre_tests.cpp | ||
| control_flow_tests.cpp | ||
| core_tests.cpp | ||
| dce_tests.cpp | ||
| format_convert_tests.cpp | ||
| load_store_vectorizer_tests.cpp | ||
| loop_analyze_tests.cpp | ||
| loop_unroll_tests.cpp | ||
| lower_alu_width_tests.cpp | ||
| lower_discard_if_tests.cpp | ||
| minimize_call_live_states_test.cpp | ||
| mod_analysis_tests.cpp | ||
| negative_equal_tests.cpp | ||
| nir_opt_varyings_test.h | ||
| nir_test.h | ||
| opt_if_tests.cpp | ||
| opt_loop_tests.cpp | ||
| opt_peephole_select.cpp | ||
| opt_shrink_vectors_tests.cpp | ||
| opt_varyings_tests_bicm_binary_alu.cpp | ||
| opt_varyings_tests_dead_input.cpp | ||
| opt_varyings_tests_dead_output.cpp | ||
| opt_varyings_tests_dedup.cpp | ||
| opt_varyings_tests_prop_const.cpp | ||
| opt_varyings_tests_prop_ubo.cpp | ||
| opt_varyings_tests_prop_uniform.cpp | ||
| opt_varyings_tests_prop_uniform_expr.cpp | ||
| range_analysis_tests.cpp | ||
| serialize_tests.cpp | ||
| vars_tests.cpp | ||