/external/mesa3d/src/compiler/nir/ |
D | nir_control_flow.c | 49 block_ends_in_jump(nir_block *block) in block_ends_in_jump() 56 block_add_pred(nir_block *block, nir_block *pred) in block_add_pred() 62 block_remove_pred(nir_block *block, nir_block *pred) in block_remove_pred() 72 link_blocks(nir_block *pred, nir_block *succ1, nir_block *succ2) in link_blocks() 84 unlink_blocks(nir_block *pred, nir_block *succ) in unlink_blocks() 98 unlink_block_successors(nir_block *block) in unlink_block_successors() 107 link_non_block_to_block(nir_cf_node *node, nir_block *block) in link_non_block_to_block() 117 nir_block *last_then_block = nir_if_last_then_block(if_stmt); in link_non_block_to_block() 118 nir_block *last_else_block = nir_if_last_else_block(if_stmt); in link_non_block_to_block() 135 link_block_to_non_block(nir_block *block, nir_cf_node *node) in link_block_to_non_block() [all …]
|
D | nir_dominance.c | 37 init_block(nir_block *block, nir_function_impl *impl) in init_block() 53 static nir_block * 54 intersect(nir_block *b1, nir_block *b2) in intersect() 72 calc_dominance(nir_block *block) in calc_dominance() 74 nir_block *new_idom = NULL; in calc_dominance() 77 nir_block *pred = (nir_block *) entry->key; in calc_dominance() 96 calc_dom_frontier(nir_block *block) in calc_dom_frontier() 101 nir_block *runner = (nir_block *) entry->key; in calc_dom_frontier() 139 block->dom_children = ralloc_array(mem_ctx, nir_block *, in calc_dom_children() 153 calc_dfs_indicies(nir_block *block, unsigned *index) in calc_dfs_indicies() [all …]
|
D | nir_worklist.h | 59 nir_block **blocks; 74 void nir_block_worklist_push_head(nir_block_worklist *w, nir_block *block); 76 nir_block *nir_block_worklist_peek_head(const nir_block_worklist *w); 78 nir_block *nir_block_worklist_pop_head(nir_block_worklist *w); 80 void nir_block_worklist_push_tail(nir_block_worklist *w, nir_block *block); 82 nir_block *nir_block_worklist_peek_tail(const nir_block_worklist *w); 84 nir_block *nir_block_worklist_pop_tail(nir_block_worklist *w);
|
D | nir_phi_builder.c | 35 nir_block **blocks; 43 nir_block **W; 93 pb->blocks = ralloc_array(pb, nir_block *, pb->num_blocks); in nir_phi_builder_create() 102 pb->W = ralloc_array(pb, nir_block *, pb->num_blocks); in nir_phi_builder_create() 131 nir_block *cur = pb->W[w_start++]; in nir_phi_builder_add_value() 134 nir_block *next = (nir_block *) dom_entry->key; in nir_phi_builder_add_value() 166 nir_block *block, nir_ssa_def *def) in nir_phi_builder_value_set_block_def() 173 nir_block *block) in nir_phi_builder_value_get_block_def() 178 nir_block *dom = block; in nir_phi_builder_value_get_block_def() 244 const nir_block * const * a = _a; in compare_blocks() [all …]
|
D | nir.h | 437 struct nir_block *block; 1456 struct nir_block *pred; 1543 typedef struct nir_block { struct 1555 struct nir_block *successors[2]; argument 1564 struct nir_block *imm_dom; argument 1568 struct nir_block **dom_children; argument 1584 } nir_block; argument 1587 nir_block_first_instr(nir_block *block) in nir_block_first_instr() 1594 nir_block_last_instr(nir_block *block) in nir_block_last_instr() 1622 nir_block *break_block; [all …]
|
D | nir_opt_dead_cf.c | 89 nir_block *after = nir_cf_node_as_block(nir_cf_node_next(&if_stmt->cf_node)); in opt_constant_if() 90 nir_block *last_block = condition ? nir_if_last_then_block(if_stmt) in opt_constant_if() 168 nir_block *after = state; in def_not_live_out() 193 nir_block *before = nir_cf_node_as_block(nir_cf_node_prev(&loop->cf_node)); in loop_is_dead() 194 nir_block *after = nir_cf_node_as_block(nir_cf_node_next(&loop->cf_node)); in loop_is_dead() 207 for (nir_block *cur = after->imm_dom; cur && cur != before; in loop_is_dead() 219 dead_cf_block(nir_block *block) in dead_cf_block() 245 ends_in_jump(nir_block *block) in ends_in_jump() 265 nir_block *block = nir_cf_node_as_block(cur); in dead_cf_list() 305 nir_block *next = nir_cf_node_as_block(nir_cf_node_next(cur)); in dead_cf_list()
|
D | nir_worklist.c | 40 w->blocks = rzalloc_array(mem_ctx, nir_block *, num_blocks); in nir_block_worklist_init() 59 nir_block_worklist_push_head(nir_block_worklist *w, nir_block *block) in nir_block_worklist_push_head() 78 nir_block * 86 nir_block * 101 nir_block_worklist_push_tail(nir_block_worklist *w, nir_block *block) in nir_block_worklist_push_tail() 117 nir_block * 127 nir_block *
|
D | nir_to_lcssa.c | 53 nir_block *block_before_loop = in is_if_use_inside_loop() 55 nir_block *block_after_loop = in is_if_use_inside_loop() 58 nir_block *prev_block = in is_if_use_inside_loop() 71 nir_block *block_before_loop = in is_use_inside_loop() 73 nir_block *block_after_loop = in is_use_inside_loop() 90 nir_block *block_after_loop = in convert_loop_exit_for_ssa() 126 phi_src->pred = (nir_block *) entry->key; in convert_loop_exit_for_ssa()
|
D | nir_opt_loop_unroll.c | 64 nir_block *block_after_loop = in loop_prepare_for_unroll() 79 nir_block **first_break_block, in get_first_blocks_in_terminator() 80 nir_block **first_continue_block) in get_first_blocks_in_terminator() 125 nir_block *first_break_block; in simple_unroll() 126 nir_block *first_continue_block; in simple_unroll() 144 nir_block *first_break_block; in simple_unroll() 145 nir_block *first_continue_block; in simple_unroll() 150 nir_block *header_blk = nir_loop_first_block(loop); in simple_unroll() 307 nir_block *header_blk = nir_loop_first_block(loop); in complex_unroll() 349 nir_block *first_break_block; in complex_unroll() [all …]
|
D | nir_liveness.c | 69 init_liveness_block(nir_block *block, in init_liveness_block() 121 propagate_across_edge(nir_block *pred, nir_block *succ, in propagate_across_edge() 195 nir_block *block = nir_block_worklist_pop_head(&state.worklist); in nir_live_ssa_defs_impl() 223 nir_block *pred = (nir_block *)entry->key; in nir_live_ssa_defs_impl()
|
D | nir_opt_conditional_discard.c | 33 nir_opt_conditional_discard_block(nir_builder *b, nir_block *block) in nir_opt_conditional_discard_block() 43 nir_block *then_block = nir_if_first_then_block(if_stmt); in nir_opt_conditional_discard_block() 44 nir_block *else_block = nir_if_first_else_block(if_stmt); in nir_opt_conditional_discard_block() 62 nir_block *after = nir_cf_node_as_block(nir_cf_node_next(&if_stmt->cf_node)); in nir_opt_conditional_discard_block()
|
D | nir_opt_peephole_select.c | 61 block_check_for_allowed_instrs(nir_block *block, unsigned *count, bool alu_ok) in block_check_for_allowed_instrs() 150 nir_opt_peephole_select_block(nir_block *block, nir_shader *shader, in nir_opt_peephole_select_block() 161 nir_block *then_block = nir_if_first_then_block(if_stmt); in nir_opt_peephole_select_block() 162 nir_block *else_block = nir_if_first_else_block(if_stmt); in nir_opt_peephole_select_block() 184 nir_block *prev_block = nir_cf_node_as_block(nir_cf_node_prev(prev_node)); in nir_opt_peephole_select_block()
|
D | nir_lower_gs_intrinsics.c | 132 rewrite_intrinsics(nir_block *block, struct state *state) in rewrite_intrinsics() 160 append_set_vertex_count(nir_block *end_block, struct state *state) in append_set_vertex_count() 170 nir_block *pred = (nir_block *) entry->key; in append_set_vertex_count()
|
D | nir_from_ssa.c | 228 add_parallel_copy_to_end_of_block(nir_block *block, void *dead_ctx) in add_parallel_copy_to_end_of_block() 259 get_parallel_copy_at_end_of_block(nir_block *block) in get_parallel_copy_at_end_of_block() 306 isolate_phi_nodes_block(nir_block *block, void *dead_ctx) in isolate_phi_nodes_block() 372 coalesce_phi_nodes_block(nir_block *block, struct from_ssa_state *state) in coalesce_phi_nodes_block() 425 aggressive_coalesce_block(nir_block *block, struct from_ssa_state *state) in aggressive_coalesce_block() 527 resolve_registers_block(nir_block *block, struct from_ssa_state *state) in resolve_registers_block() 731 resolve_parallel_copies_block(nir_block *block, struct from_ssa_state *state) in resolve_parallel_copies_block() 828 nir_ssa_def *def, nir_block *block) in place_phi_read() 835 nir_block *pred = (nir_block *)entry->key; in place_phi_read() 849 place_phi_read(shader, reg, def, (nir_block *)entry->key); in place_phi_read() [all …]
|
D | nir_opt_gcm.c | 81 nir_block *block = nir_cf_node_as_block(node); in gcm_build_block_info() 109 gcm_pin_instructions_block(nir_block *block, struct gcm_state *state) in gcm_pin_instructions_block() 279 nir_block *lca = NULL; in gcm_schedule_late_def() 311 nir_block *pred_block = in gcm_schedule_late_def() 328 nir_block *best = lca; in gcm_schedule_late_def() 329 for (nir_block *block = lca; block != NULL; block = block->imm_dom) { in gcm_schedule_late_def()
|
D | nir_opt_if.c | 84 nir_block *header_block = nir_loop_first_block(loop); in opt_peel_loop_initial_if() 85 nir_block *prev_block = in opt_peel_loop_initial_if() 98 nir_block *continue_block = NULL; in opt_peel_loop_initial_if() 170 nir_block *after_if_block = in opt_peel_loop_initial_if()
|
D | nir_control_flow_private.h | 38 void nir_handle_add_jump(nir_block *block); 39 void nir_handle_remove_jump(nir_block *block, nir_jump_type type);
|
D | nir_phi_builder.h | 92 nir_block *block, nir_ssa_def *def); 108 nir_block *block);
|
D | nir_gs_count_vertices.c | 67 nir_block *block = (nir_block *) entry->key; in nir_gs_count_vertices()
|
D | nir_opt_cse.c | 42 cse_block(nir_block *block, struct set *instr_set) in cse_block() 54 nir_block *child = block->dom_children[i]; in cse_block()
|
D | nir_loop_analyze.c | 112 init_loop_block(nir_block *block, loop_info_state *state, in init_loop_block() 294 ends_in_break(nir_block *block) in ends_in_break() 312 nir_block *break_blk = NULL; in find_loop_terminators() 313 nir_block *continue_from_blk = NULL; in find_loop_terminators() 316 nir_block *last_then = nir_if_last_then_block(nif); in find_loop_terminators() 317 nir_block *last_else = nir_if_last_else_block(nif); in find_loop_terminators() 680 nir_block *block) in force_unroll_heuristics()
|
D | nir_opt_move_comparisons.c | 78 move_comparison_source(nir_src *src, nir_block *block, nir_instr *before) in move_comparison_source() 115 move_comparisons(nir_block *block) in move_comparisons()
|
/external/mesa3d/src/gallium/drivers/freedreno/ir3/ |
D | ir3_nir_lower_if_else.c | 62 valid_dest(nir_block *block, nir_dest *dest) in valid_dest() 91 block_check_for_allowed_instrs(nir_block *block) in block_check_for_allowed_instrs() 159 flatten_block(nir_builder *bld, nir_block *if_block, nir_block *prev_block, in flatten_block() 210 lower_if_else_block(nir_block *block, nir_builder *b, void *mem_ctx) in lower_if_else_block() 227 nir_block *then_block = nir_if_first_then_block(if_stmt); in lower_if_else_block() 228 nir_block *else_block = nir_if_first_else_block(if_stmt); in lower_if_else_block() 250 nir_block *prev_block = nir_cf_node_as_block(nir_cf_node_prev(prev_node)); in lower_if_else_block()
|
/external/mesa3d/src/compiler/nir/tests/ |
D | control_flow_tests.cpp | 78 nir_block *block_0 = nir_start_block(b.impl); in TEST_F() 79 nir_block *block_1 = nir_loop_first_block(loop); in TEST_F() 80 nir_block *block_2 = nir_cf_node_as_block(nir_cf_node_next(&loop->cf_node)); in TEST_F() 81 nir_block *block_3 = b.impl->end_block; in TEST_F()
|
/external/mesa3d/src/intel/compiler/ |
D | brw_nir_tcs_workarounds.c | 92 emit_quads_workaround(nir_builder *b, nir_block *block) in emit_quads_workaround() 139 nir_block *end_preds[num_end_preds]; in brw_nir_apply_tcs_quads_workaround() 144 end_preds[i++] = (nir_block *) entry->key; in brw_nir_apply_tcs_quads_workaround()
|