Lines Matching refs:ctx
886 bi_max_temp(bi_context *ctx)
888 return (MAX2(ctx->reg_alloc, ctx->ssa_alloc) + 2) << 1;
892 bi_temp(bi_context *ctx)
894 return bi_get_index(ctx->ssa_alloc++, false, 0);
898 bi_temp_reg(bi_context *ctx)
900 return bi_get_index(ctx->reg_alloc++, true, 0);
951 #define bi_foreach_block(ctx, v) \
952 list_for_each_entry(bi_block, v, &ctx->blocks, link)
954 #define bi_foreach_block_rev(ctx, v) \
955 list_for_each_entry_rev(bi_block, v, &ctx->blocks, link)
957 #define bi_foreach_block_from(ctx, from, v) \
958 list_for_each_entry_from(bi_block, v, from, &ctx->blocks, link)
960 #define bi_foreach_block_from_rev(ctx, from, v) \
961 list_for_each_entry_from_rev(bi_block, v, from, &ctx->blocks, link)
996 #define bi_foreach_instr_global(ctx, v) \
997 bi_foreach_block(ctx, v_block) \
1000 #define bi_foreach_instr_global_rev(ctx, v) \
1001 bi_foreach_block_rev(ctx, v_block) \
1004 #define bi_foreach_instr_global_safe(ctx, v) \
1005 bi_foreach_block(ctx, v_block) \
1008 #define bi_foreach_instr_global_rev_safe(ctx, v) \
1009 bi_foreach_block_rev(ctx, v_block) \
1057 bi_entry_block(bi_context *ctx)
1059 return list_first_entry(&ctx->blocks, bi_block, link);
1069 bi_clause * bi_next_clause(bi_context *ctx, bi_block *block, bi_clause *clause);
1081 void bi_print_shader(bi_context *ctx, FILE *fp);
1087 void bi_analyze_helper_terminate(bi_context *ctx);
1088 void bi_mark_clauses_td(bi_context *ctx);
1090 void bi_analyze_helper_requirements(bi_context *ctx);
1091 void bi_opt_copy_prop(bi_context *ctx);
1092 void bi_opt_cse(bi_context *ctx);
1093 void bi_opt_mod_prop_forward(bi_context *ctx);
1094 void bi_opt_mod_prop_backward(bi_context *ctx);
1095 void bi_opt_dead_code_eliminate(bi_context *ctx);
1096 void bi_opt_fuse_dual_texture(bi_context *ctx);
1097 void bi_opt_dce_post_ra(bi_context *ctx);
1098 void bi_opt_message_preload(bi_context *ctx);
1099 void bi_opt_push_ubo(bi_context *ctx);
1100 void bi_opt_reorder_push(bi_context *ctx);
1101 void bi_lower_swizzle(bi_context *ctx);
1102 void bi_lower_fau(bi_context *ctx);
1103 void bi_assign_scoreboard(bi_context *ctx);
1104 void bi_register_allocate(bi_context *ctx);
1105 void va_optimize(bi_context *ctx);
1106 void va_lower_split_64bit(bi_context *ctx);
1110 void bi_pressure_schedule(bi_context *ctx);
1111 void bi_schedule(bi_context *ctx);
1120 bool bi_validate_initialization(bi_context *ctx);
1121 void bi_validate(bi_context *ctx, const char *after_str);
1123 static inline bool bi_validate_initialization(UNUSED bi_context *ctx) { return true; }
1124 static inline void bi_validate(UNUSED bi_context *ctx, UNUSED const char *after_str) { return; }
1128 bool bi_opt_constant_fold(bi_context *ctx);
1132 void bi_compute_liveness(bi_context *ctx);
1135 void bi_postra_liveness(bi_context *ctx);
1140 signed bi_block_offset(bi_context *ctx, bi_clause *start, bi_block *target);
1158 unsigned bi_pack(bi_context *ctx, struct util_dynarray *emission);
1159 void bi_pack_valhall(bi_context *ctx, struct util_dynarray *emission);
1341 bi_init_builder(bi_context *ctx, bi_cursor cursor)
1344 .shader = ctx,
1386 #define bi_worklist_init(ctx, w) u_worklist_init(w, ctx->num_blocks, ctx)