Lines Matching defs:OPT
515 #define OPT(pass, ...) ({ \
535 OPT(nir_split_array_vars, nir_var_function_temp);
536 OPT(nir_shrink_vec_array_vars, nir_var_function_temp);
537 OPT(nir_opt_deref);
538 OPT(nir_lower_vars_to_ssa);
544 OPT(nir_opt_find_array_copies);
546 OPT(nir_opt_copy_prop_vars);
547 OPT(nir_opt_dead_write_vars);
548 OPT(nir_opt_combine_stores, nir_var_all);
551 OPT(nir_lower_alu_to_scalar, NULL, NULL);
553 OPT(nir_opt_shrink_vectors, true);
556 OPT(nir_copy_prop);
559 OPT(nir_lower_phis_to_scalar, false);
562 OPT(nir_copy_prop);
563 OPT(nir_opt_dce);
564 OPT(nir_opt_cse);
565 OPT(nir_opt_combine_stores, nir_var_all);
587 OPT(nir_opt_peephole_select, 0, !is_vec4_tessellation, false);
588 OPT(nir_opt_peephole_select, 8, !is_vec4_tessellation,
591 OPT(nir_opt_intrinsics);
592 OPT(nir_opt_idiv_const, 32);
593 OPT(nir_opt_algebraic);
594 OPT(nir_opt_constant_folding);
597 if (OPT(nir_lower_flrp,
600 OPT(nir_opt_constant_folding);
609 OPT(nir_opt_dead_cf);
610 if (OPT(nir_opt_trivial_continues)) {
615 OPT(nir_copy_prop);
616 OPT(nir_opt_dce);
618 OPT(nir_opt_if, false);
619 OPT(nir_opt_conditional_discard);
621 OPT(nir_opt_loop_unroll);
623 OPT(nir_opt_remove_phis);
624 OPT(nir_opt_gcm, false);
625 OPT(nir_opt_undef);
626 OPT(nir_lower_pack);
632 OPT(nir_remove_dead_variables, nir_var_function_temp, NULL);
763 UNUSED bool progress; /* Written by OPT */
770 OPT(nir_lower_alu_to_scalar, NULL, NULL);
774 OPT(nir_lower_gs_intrinsics, 0);
779 OPT(brw_nir_apply_trig_workarounds);
782 OPT(brw_nir_clamp_image_1d_2d_array_sizes);
797 OPT(nir_lower_tex, &tex_options);
798 OPT(nir_normalize_cubemap_coords);
800 OPT(nir_lower_global_vars_to_local);
802 OPT(nir_split_var_copies);
803 OPT(nir_split_struct_vars, nir_var_function_temp);
807 OPT(nir_lower_doubles, softfp64, nir->options->lower_doubles_options);
808 OPT(nir_lower_int64);
810 OPT(nir_lower_bit_size, lower_bit_size_callback, (void *)compiler);
813 OPT(nir_lower_load_const_to_scalar);
817 OPT(nir_lower_var_copies);
823 OPT(nir_opt_large_constants, NULL, 32);
826 OPT(nir_lower_system_values);
827 OPT(nir_lower_compute_system_values, NULL);
838 OPT(nir_lower_subgroups, &subgroups_options);
840 OPT(nir_lower_clip_cull_distance_arrays);
844 OPT(nir_lower_indirect_derefs, indirect_mask, UINT32_MAX);
860 OPT(nir_lower_indirect_derefs, nir_var_function_temp, 16);
869 OPT(nir_lower_array_deref_of_vec,
1015 OPT(nir_opt_load_store_vectorize, &options);
1018 OPT(brw_nir_lower_mem_access_bit_sizes, devinfo);
1023 OPT(nir_lower_pack);
1024 OPT(nir_copy_prop);
1025 OPT(nir_opt_dce);
1026 OPT(nir_opt_cse);
1027 OPT(nir_opt_algebraic);
1028 OPT(nir_opt_constant_folding);
1057 UNUSED bool progress; /* Written by OPT */
1059 OPT(nir_lower_bit_size, lower_bit_size_callback, (void *)compiler);
1061 OPT(brw_nir_lower_scoped_barriers);
1062 OPT(nir_opt_combine_memory_barriers, combine_all_barriers, NULL);
1066 OPT(nir_opt_algebraic_before_ffma);
1074 OPT(nir_lower_idiv, &options);
1080 OPT(nir_lower_vars_to_explicit_types, nir_var_function_temp,
1082 OPT(nir_lower_explicit_io, nir_var_function_temp,
1090 if (OPT(nir_lower_int64))
1095 OPT(brw_nir_opt_peephole_ffma);
1098 if (OPT(nir_opt_comparison_pre)) {
1099 OPT(nir_copy_prop);
1100 OPT(nir_opt_dce);
1101 OPT(nir_opt_cse);
1113 OPT(nir_opt_peephole_select, 0, is_vec4_tessellation, false);
1114 OPT(nir_opt_peephole_select, 1, is_vec4_tessellation,
1120 if (OPT(nir_opt_algebraic_late)) {
1126 OPT(nir_opt_constant_folding);
1128 OPT(nir_copy_prop);
1129 OPT(nir_opt_dce);
1130 OPT(nir_opt_cse);
1135 OPT(brw_nir_lower_conversions);
1138 OPT(nir_lower_alu_to_scalar, NULL, NULL);
1140 while (OPT(nir_opt_algebraic_distribute_src_mods)) {
1141 OPT(nir_copy_prop);
1142 OPT(nir_opt_dce);
1143 OPT(nir_opt_cse);
1146 OPT(nir_copy_prop);
1147 OPT(nir_opt_dce);
1148 OPT(nir_opt_move, nir_move_comparisons);
1149 OPT(nir_opt_dead_cf);
1151 OPT(nir_lower_bool_to_int32);
1152 OPT(nir_copy_prop);
1153 OPT(nir_opt_dce);
1155 OPT(nir_lower_locals_to_regs);
1171 OPT(nir_convert_from_ssa, true);
1174 OPT(nir_move_vec_src_uses_to_dest);
1175 OPT(nir_lower_vec_to_movs, NULL, NULL);
1178 OPT(nir_opt_dce);
1180 if (OPT(nir_opt_rematerialize_compares))
1181 OPT(nir_opt_dce);
1307 OPT(brw_nir_apply_sampler_key, compiler, &key->tex);
1316 OPT(nir_lower_subgroups, &subgroups_options);