Lines Matching refs:OPT

519 #define OPT(pass, ...) ({                                  \
539 OPT(nir_split_array_vars, nir_var_function_temp);
540 OPT(nir_shrink_vec_array_vars, nir_var_function_temp);
541 OPT(nir_opt_deref);
542 if (OPT(nir_opt_memcpy))
543 OPT(nir_split_var_copies);
544 OPT(nir_lower_vars_to_ssa);
550 OPT(nir_opt_find_array_copies);
552 OPT(nir_opt_copy_prop_vars);
553 OPT(nir_opt_dead_write_vars);
554 OPT(nir_opt_combine_stores, nir_var_all);
556 OPT(nir_opt_ray_queries);
559 OPT(nir_lower_alu_to_scalar, NULL, NULL);
561 OPT(nir_opt_shrink_stores, true);
562 OPT(nir_opt_shrink_vectors);
565 OPT(nir_copy_prop);
568 OPT(nir_lower_phis_to_scalar, false);
571 OPT(nir_copy_prop);
572 OPT(nir_opt_dce);
573 OPT(nir_opt_cse);
574 OPT(nir_opt_combine_stores, nir_var_all);
596 OPT(nir_opt_peephole_select, 0, !is_vec4_tessellation, false);
597 OPT(nir_opt_peephole_select, 8, !is_vec4_tessellation,
600 OPT(nir_opt_intrinsics);
601 OPT(nir_opt_idiv_const, 32);
602 OPT(nir_opt_algebraic);
603 OPT(nir_lower_constant_convert_alu_types);
604 OPT(nir_opt_constant_folding);
607 if (OPT(nir_lower_flrp,
610 OPT(nir_opt_constant_folding);
619 OPT(nir_opt_dead_cf);
620 if (OPT(nir_opt_trivial_continues)) {
625 OPT(nir_copy_prop);
626 OPT(nir_opt_dce);
628 OPT(nir_opt_if, nir_opt_if_optimize_phi_true_false);
629 OPT(nir_opt_conditional_discard);
631 OPT(nir_opt_loop_unroll);
633 OPT(nir_opt_remove_phis);
634 OPT(nir_opt_gcm, false);
635 OPT(nir_opt_undef);
636 OPT(nir_lower_pack);
642 OPT(nir_remove_dead_variables, nir_var_function_temp, NULL);
816 UNUSED bool progress; /* Written by OPT */
823 OPT(nir_lower_alu_to_scalar, NULL, NULL);
827 OPT(nir_lower_gs_intrinsics, 0);
832 OPT(brw_nir_apply_trig_workarounds);
835 OPT(brw_nir_clamp_image_1d_2d_array_sizes);
854 OPT(nir_lower_tex, &tex_options);
855 OPT(nir_normalize_cubemap_coords);
857 OPT(nir_lower_global_vars_to_local);
859 OPT(nir_split_var_copies);
860 OPT(nir_split_struct_vars, nir_var_function_temp);
864 OPT(nir_lower_doubles, softfp64, nir->options->lower_doubles_options);
865 OPT(nir_lower_int64);
867 OPT(nir_lower_bit_size, lower_bit_size_callback, (void *)compiler);
870 OPT(nir_lower_load_const_to_scalar);
874 OPT(nir_lower_var_copies);
880 OPT(nir_opt_large_constants, NULL, 32);
883 OPT(nir_lower_system_values);
884 OPT(nir_lower_compute_system_values, NULL);
895 OPT(nir_lower_subgroups, &subgroups_options);
899 OPT(nir_lower_indirect_derefs, indirect_mask, UINT32_MAX);
915 OPT(nir_lower_indirect_derefs, nir_var_function_temp, 16);
924 OPT(nir_lower_array_deref_of_vec,
1105 OPT(nir_opt_load_store_vectorize, &options);
1108 OPT(brw_nir_lower_mem_access_bit_sizes, devinfo);
1113 OPT(nir_lower_pack);
1114 OPT(nir_copy_prop);
1115 OPT(nir_opt_dce);
1116 OPT(nir_opt_cse);
1117 OPT(nir_opt_algebraic);
1118 OPT(nir_opt_constant_folding);
1147 UNUSED bool progress; /* Written by OPT */
1149 OPT(nir_lower_bit_size, lower_bit_size_callback, (void *)compiler);
1151 OPT(brw_nir_lower_scoped_barriers);
1152 OPT(nir_opt_combine_memory_barriers, combine_all_barriers, NULL);
1156 OPT(nir_opt_algebraic_before_ffma);
1164 OPT(nir_lower_idiv, &options);
1173 OPT(nir_lower_vars_to_explicit_types, nir_var_function_temp,
1175 OPT(nir_lower_explicit_io, nir_var_function_temp,
1183 if (OPT(nir_lower_int64))
1188 OPT(brw_nir_opt_peephole_ffma);
1191 if (OPT(nir_opt_comparison_pre)) {
1192 OPT(nir_copy_prop);
1193 OPT(nir_opt_dce);
1194 OPT(nir_opt_cse);
1206 OPT(nir_opt_peephole_select, 0, is_vec4_tessellation, false);
1207 OPT(nir_opt_peephole_select, 1, is_vec4_tessellation,
1213 if (OPT(nir_opt_algebraic_late)) {
1219 OPT(nir_opt_constant_folding);
1221 OPT(nir_copy_prop);
1222 OPT(nir_opt_dce);
1223 OPT(nir_opt_cse);
1228 OPT(brw_nir_lower_conversions);
1231 OPT(nir_lower_alu_to_scalar, NULL, NULL);
1233 while (OPT(nir_opt_algebraic_distribute_src_mods)) {
1234 OPT(nir_copy_prop);
1235 OPT(nir_opt_dce);
1236 OPT(nir_opt_cse);
1239 OPT(nir_copy_prop);
1240 OPT(nir_opt_dce);
1241 OPT(nir_opt_move, nir_move_comparisons);
1242 OPT(nir_opt_dead_cf);
1259 if (opt_uniform_atomic_stage_allowed && OPT(nir_opt_uniform_atomics)) {
1265 OPT(nir_lower_subgroups, &subgroups_options);
1267 if (OPT(nir_lower_int64))
1272 OPT(nir_opt_remove_phis);
1274 OPT(nir_lower_bool_to_int32);
1275 OPT(nir_copy_prop);
1276 OPT(nir_opt_dce);
1278 OPT(nir_lower_locals_to_regs);
1294 OPT(nir_convert_from_ssa, true);
1297 OPT(nir_move_vec_src_uses_to_dest);
1298 OPT(nir_lower_vec_to_movs, NULL, NULL);
1301 OPT(nir_opt_dce);
1303 if (OPT(nir_opt_rematerialize_compares))
1304 OPT(nir_opt_dce);
1424 OPT(brw_nir_apply_sampler_key, compiler, &key->tex);
1432 OPT(nir_lower_subgroups, &subgroups_options);
1435 OPT(brw_nir_limit_trig_input_range_workaround);