mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-20 13:28:09 +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> |
||
|---|---|---|
| .. | ||
| tests | ||
| brw_analysis.cpp | ||
| brw_analysis.h | ||
| brw_analysis_def.cpp | ||
| brw_analysis_liveness.cpp | ||
| brw_analysis_performance.cpp | ||
| brw_asm.c | ||
| brw_asm.h | ||
| brw_asm_internal.h | ||
| brw_asm_tool.c | ||
| brw_builder.cpp | ||
| brw_builder.h | ||
| brw_cfg.cpp | ||
| brw_cfg.h | ||
| brw_compile_bs.cpp | ||
| brw_compile_cs.cpp | ||
| brw_compile_fs.cpp | ||
| brw_compile_gs.cpp | ||
| brw_compile_mesh.cpp | ||
| brw_compile_tcs.cpp | ||
| brw_compile_tes.cpp | ||
| brw_compile_vs.cpp | ||
| brw_compiler.c | ||
| brw_compiler.h | ||
| brw_debug_recompile.c | ||
| brw_disasm.c | ||
| brw_disasm.h | ||
| brw_disasm_info.cpp | ||
| brw_disasm_info.h | ||
| brw_disasm_tool.c | ||
| brw_eu.c | ||
| brw_eu.h | ||
| brw_eu_compact.c | ||
| brw_eu_defines.h | ||
| brw_eu_emit.c | ||
| brw_eu_inst.h | ||
| brw_eu_validate.c | ||
| brw_from_nir.cpp | ||
| brw_generator.cpp | ||
| brw_generator.h | ||
| brw_gram.y | ||
| brw_inst.cpp | ||
| brw_inst.h | ||
| brw_isa_info.h | ||
| brw_lex.l | ||
| brw_load_reg.cpp | ||
| brw_lower.cpp | ||
| brw_lower_dpas.cpp | ||
| brw_lower_integer_multiplication.cpp | ||
| brw_lower_logical_sends.cpp | ||
| brw_lower_pack.cpp | ||
| brw_lower_regioning.cpp | ||
| brw_lower_scoreboard.cpp | ||
| brw_lower_simd_width.cpp | ||
| brw_lower_subgroup_ops.cpp | ||
| brw_nir.c | ||
| brw_nir.h | ||
| brw_nir_analyze_ubo_ranges.c | ||
| brw_nir_lower_alpha_to_coverage.c | ||
| brw_nir_lower_cooperative_matrix.c | ||
| brw_nir_lower_cs_intrinsics.c | ||
| brw_nir_lower_fs_barycentrics.c | ||
| brw_nir_lower_fs_load_output.c | ||
| brw_nir_lower_fsign.py | ||
| brw_nir_lower_immediate_offsets.c | ||
| brw_nir_lower_intersection_shader.c | ||
| brw_nir_lower_ray_queries.c | ||
| brw_nir_lower_rt_intrinsics.c | ||
| brw_nir_lower_rt_intrinsics_pre_trace.c | ||
| brw_nir_lower_sample_index_in_coord.c | ||
| brw_nir_lower_shader_calls.c | ||
| brw_nir_lower_storage_image.c | ||
| brw_nir_lower_texel_address.c | ||
| brw_nir_lower_texture.c | ||
| brw_nir_opt_fsat.c | ||
| brw_nir_rt.c | ||
| brw_nir_rt.h | ||
| brw_nir_rt_builder.h | ||
| brw_nir_wa_18019110168.c | ||
| brw_nir_workarounds.py | ||
| brw_opt.cpp | ||
| brw_opt_address_reg_load.cpp | ||
| brw_opt_algebraic.cpp | ||
| brw_opt_bank_conflicts.cpp | ||
| brw_opt_cmod_propagation.cpp | ||
| brw_opt_combine_constants.cpp | ||
| brw_opt_copy_propagation.cpp | ||
| brw_opt_cse.cpp | ||
| brw_opt_dead_code_eliminate.cpp | ||
| brw_opt_register_coalesce.cpp | ||
| brw_opt_saturate_propagation.cpp | ||
| brw_opt_txf_combiner.cpp | ||
| brw_opt_virtual_grfs.cpp | ||
| brw_packed_float.c | ||
| brw_print.cpp | ||
| brw_private.h | ||
| brw_reg.cpp | ||
| brw_reg.h | ||
| brw_reg_allocate.cpp | ||
| brw_reg_type.c | ||
| brw_reg_type.h | ||
| brw_rt.h | ||
| brw_sampler.c | ||
| brw_sampler.h | ||
| brw_schedule_instructions.cpp | ||
| brw_shader.cpp | ||
| brw_shader.h | ||
| brw_simd_selection.cpp | ||
| brw_thread_payload.cpp | ||
| brw_thread_payload.h | ||
| brw_validate.cpp | ||
| brw_vue_map.c | ||
| brw_workaround.cpp | ||
| meson.build | ||
| test_eu_compact.cpp | ||
| test_eu_validate.cpp | ||
| test_helpers.cpp | ||
| test_helpers.h | ||
| test_insert_load_reg.cpp | ||
| test_lower_scoreboard.cpp | ||
| test_opt_algebraic.cpp | ||
| test_opt_cmod_propagation.cpp | ||
| test_opt_combine_constants.cpp | ||
| test_opt_copy_propagation.cpp | ||
| test_opt_cse.cpp | ||
| test_opt_register_coalesce.cpp | ||
| test_opt_saturate_propagation.cpp | ||
| test_simd_selection.cpp | ||
| test_vf_float_conversions.cpp | ||