/external/mesa3d/src/compiler/nir/ |
nir_opt_if.c | 86 nir_cf_node_as_block(nir_cf_node_prev(&loop->cf_node)); 105 nir_cf_node *if_node = nir_cf_node_next(&header_block->cf_node); 156 foreach_list_typed(nir_cf_node, cf_node, node, entry_list) { 157 nir_foreach_block_in_cf_node(block, cf_node) { 171 nir_cf_node_as_block(nir_cf_node_next(&nif->cf_node)); 180 nir_foreach_block_in_cf_node(block, &nif->cf_node) 187 nir_cf_list_clone(&tmp, &header, &loop->cf_node, NULL); 188 nir_cf_reinsert(&tmp, nir_before_cf_node(&loop->cf_node)); 191 nir_cf_reinsert(&tmp, nir_before_cf_node(&loop->cf_node)); 198 nir_cf_node_remove(&nif->cf_node); [all...] |
nir_sweep.c | 41 static void sweep_cf_node(nir_shader *nir, nir_cf_node *cf_node); 79 foreach_list_typed(nir_cf_node, cf_node, node, &iff->then_list) { 80 sweep_cf_node(nir, cf_node); 83 foreach_list_typed(nir_cf_node, cf_node, node, &iff->else_list) { 84 sweep_cf_node(nir, cf_node); 93 foreach_list_typed(nir_cf_node, cf_node, node, &loop->body) { 94 sweep_cf_node(nir, cf_node); 99 sweep_cf_node(nir_shader *nir, nir_cf_node *cf_node) 101 switch (cf_node->type) { 103 sweep_block(nir, nir_cf_node_as_block(cf_node)); [all...] |
nir_to_lcssa.c | 54 nir_cf_node_as_block(nir_cf_node_prev(&loop->cf_node)); 56 nir_cf_node_as_block(nir_cf_node_next(&loop->cf_node)); 59 nir_cf_node_as_block(nir_cf_node_prev(&use->parent_if->cf_node)); 72 nir_cf_node_as_block(nir_cf_node_prev(&loop->cf_node)); 74 nir_cf_node_as_block(nir_cf_node_next(&loop->cf_node)); 91 nir_cf_node_as_block(nir_cf_node_next(&state->loop->cf_node)); 159 convert_to_lcssa(nir_cf_node *cf_node, lcssa_state *state) 161 switch (cf_node->type) { 163 nir_foreach_instr(instr, nir_cf_node_as_block(cf_node)) 167 nir_if *if_stmt = nir_cf_node_as_if(cf_node); [all...] |
nir_opt_trivial_continues.c | 42 nir_cf_node *prev_node = nir_cf_node_prev(&block->cf_node); 78 foreach_list_typed(nir_cf_node, cf_node, node, cf_list) { 80 &cf_node->node == exec_list_get_tail(cf_list); 81 switch (cf_node->type) { 86 nir_if *nif = nir_cf_node_as_if(cf_node); 95 nir_loop *loop = nir_cf_node_as_loop(cf_node);
|
nir_opt_loop_unroll.c | 47 nir_cf_node_as_block(nir_cf_node_next(&loop->cf_node)); 119 nir_after_cf_node(&terminator->nif->cf_node)); 121 nir_cf_node_remove(&terminator->nif->cf_node); 134 nir_before_cf_node(&limiting_term->nif->cf_node)); 142 nir_after_cf_node(&limiting_term->nif->cf_node)); 146 nir_cf_extract(&loop_body, nir_after_cf_node(&limiting_term->nif->cf_node), 155 nir_cf_list_clone(&cloned_header, &lp_header, loop->cf_node.parent, 159 nir_cf_reinsert(&cloned_header, nir_before_cf_node(&loop->cf_node)); 167 nir_cf_list_clone(&unrolled_lp_body, &loop_body, loop->cf_node.parent, 171 nir_cf_reinsert(&unrolled_lp_body, nir_before_cf_node(&loop->cf_node)); [all...] |
nir_control_flow.c | 196 new_block->cf_node.parent = block->cf_node.parent; 197 exec_node_insert_node_before(&block->cf_node.node, &new_block->cf_node.node); 241 nir_function_impl *impl = nir_cf_node_get_function(&block->cf_node); 297 if (exec_node_is_tail_sentinel(block->cf_node.node.next)) { 298 nir_cf_node *parent = block->cf_node.parent; 316 nir_cf_node *next = nir_cf_node_next(&block->cf_node); 339 new_block->cf_node.parent = block->cf_node.parent 690 nir_cf_node *cf_node = &block_begin->cf_node; local [all...] |
nir_opt_conditional_discard.c | 35 if (nir_cf_node_is_first(&block->cf_node)) 38 nir_cf_node *prev_node = nir_cf_node_prev(&block->cf_node); 62 nir_block *after = nir_cf_node_as_block(nir_cf_node_next(&if_stmt->cf_node)); 103 nir_cf_node_remove(&if_stmt->cf_node);
|
nir_opt_global_to_local.c | 40 nir_cf_node_get_function(&instr->block->cf_node); 52 nir_cf_node_get_function(&instr->block->cf_node); 63 nir_function_impl *if_impl = nir_cf_node_get_function(&if_stmt->cf_node);
|
nir_opt_dead_cf.c | 67 * be careful with restarting after deleting the cf_node (see dead_cf_list()) 89 nir_block *after = nir_cf_node_as_block(nir_cf_node_next(&if_stmt->cf_node)); 122 remove_after_cf_node(&if_stmt->cf_node); 131 nir_cf_reinsert(&list, nir_after_cf_node(&if_stmt->cf_node)); 132 nir_cf_node_remove(&if_stmt->cf_node); 193 nir_block *before = nir_cf_node_as_block(nir_cf_node_prev(&loop->cf_node)); 194 nir_block *after = nir_cf_node_as_block(nir_cf_node_next(&loop->cf_node)); 200 if (cf_node_has_side_effects(&loop->cf_node)) 203 nir_function_impl *impl = nir_cf_node_get_function(&loop->cf_node); 240 nir_cf_node_remove(&following_loop->cf_node); [all...] |
nir_lower_returns.c | 58 nir_cf_node_insert(b->cursor, &if_stmt->cf_node); 72 nir_cf_extract(&list, nir_after_cf_node(&if_stmt->cf_node), 93 predicate_following(&loop->cf_node, state); 124 predicate_following(&if_stmt->cf_node, state); 130 nir_cf_extract(&list, nir_after_cf_node(&if_stmt->cf_node), 156 nir_cf_extract(&list, nir_before_cf_node(&block->cf_node), 203 assert(nir_cf_node_next(&block->cf_node) == NULL);
|
nir_loop_analyze.h | 88 if (contains_other_jump(&nif->cf_node, last_instr))
|
nir_dominance.c | 220 assert(nir_cf_node_get_function(&b1->cf_node) == 221 nir_cf_node_get_function(&b2->cf_node)); 223 assert(nir_cf_node_get_function(&b1->cf_node)->valid_metadata & 235 assert(nir_cf_node_get_function(&parent->cf_node) == 236 nir_cf_node_get_function(&child->cf_node)); 238 assert(nir_cf_node_get_function(&parent->cf_node)->valid_metadata &
|
nir_opt_peephole_select.c | 153 if (nir_cf_node_is_first(&block->cf_node)) 156 nir_cf_node *prev_node = nir_cf_node_prev(&block->cf_node); 233 nir_cf_node_remove(&if_stmt->cf_node);
|
nir.c | 277 cf_init(&impl->cf_node, nir_cf_node_function); 292 start_block->cf_node.parent = &impl->cf_node; 293 end_block->cf_node.parent = &impl->cf_node; 296 exec_list_push_tail(&impl->body, &start_block->cf_node.node); 341 cf_init(&block->cf_node, nir_cf_node_block); 377 cf_init(&if_stmt->cf_node, nir_cf_node_if); 382 exec_list_push_tail(&if_stmt->then_list, &then->cf_node.node); 383 then->cf_node.parent = &if_stmt->cf_node [all...] |
nir_validate.c | 657 validate_assert(state, block->cf_node.parent == state->parent_node); 702 nir_cf_node_as_block(nir_cf_node_next(&state->loop->cf_node)); 721 nir_cf_node *next = nir_cf_node_next(&block->cf_node); 772 validate_assert(state, !exec_node_is_head_sentinel(if_stmt->cf_node.node.prev)); 773 nir_cf_node *prev_node = nir_cf_node_prev(&if_stmt->cf_node); 776 validate_assert(state, !exec_node_is_tail_sentinel(if_stmt->cf_node.node.next)); 777 nir_cf_node *next_node = nir_cf_node_next(&if_stmt->cf_node); 786 state->parent_node = &if_stmt->cf_node; 789 foreach_list_typed(nir_cf_node, cf_node, node, &if_stmt->then_list) { 790 validate_cf_node(cf_node, state) [all...] |
nir_lower_load_const_to_scalar.c | 45 nir_builder_init(&b, nir_cf_node_get_function(&lower->instr.block->cf_node));
|
/external/mesa3d/src/compiler/nir/tests/ |
control_flow_tests.cpp | 53 nir_cf_node_insert(nir_after_cf_list(&b.impl->body), &loop->cf_node); 80 nir_block *block_2 = nir_cf_node_as_block(nir_cf_node_next(&loop->cf_node)); 82 ASSERT_EQ(nir_cf_node_block, block_0->cf_node.type); 83 ASSERT_EQ(nir_cf_node_block, block_1->cf_node.type); 84 ASSERT_EQ(nir_cf_node_block, block_2->cf_node.type); 85 ASSERT_EQ(nir_cf_node_block, block_3->cf_node.type);
|
/external/mesa3d/src/gallium/drivers/r600/sb/ |
sb_bc.h | 46 class cf_node; 823 typedef std::vector<cf_node*> id_cf_map; 855 int decode_alu_clause(cf_node *cf); 856 int decode_alu_group(cf_node* cf, unsigned &i, unsigned &gcnt); 858 int decode_fetch_clause(cf_node *cf); 861 int prepare_alu_clause(cf_node *cf); 862 int prepare_alu_group(cf_node* cf, alu_group_node *g); 863 int prepare_fetch_clause(cf_node *cf); 865 int prepare_loop(cf_node *c); 866 int prepare_if(cf_node *c) [all...] |
sb_bc_finalize.cpp | 79 cf_node *c = sh.create_clause(NST_ALU_CLAUSE); 105 cf_node *c = sh.create_cf(CF_OP_CF_END); 113 cf_node *le = last_export[t]; 127 cf_node *loop_start = sh.create_cf(CF_OP_LOOP_START_DX10); 128 cf_node *loop_end = sh.create_cf(CF_OP_LOOP_END); 144 cf_node *loop_break = sh.create_cf(CF_OP_LOOP_BREAK); 155 cf_node *loop_cont = sh.create_cf(CF_OP_LOOP_CONTINUE); 199 cf_node *if_jump = sh.create_cf(CF_OP_JUMP); 200 cf_node *if_pop = sh.create_cf(CF_OP_POP); 214 cf_node *nelse = sh.create_cf(CF_OP_ELSE) [all...] |
sb_pass.h | 62 virtual bool visit(cf_node &n, bool enter); 107 virtual bool visit(cf_node &n, bool enter); 113 void dump(cf_node& n); 133 virtual bool visit(cf_node &n, bool enter); 180 virtual bool visit(cf_node &n, bool enter); 320 virtual bool visit(cf_node &n, bool enter); 374 virtual bool visit(cf_node &n, bool enter); 600 virtual bool visit(cf_node &n, bool enter); 649 virtual bool visit(cf_node &n, bool enter); 684 cf_node *last_export[EXP_TYPE_COUNT] [all...] |
sb_bc_parser.cpp | 200 cf_node *cf = sh->create_cf(); 241 int bc_parser::decode_alu_clause(cf_node* cf) { 261 int bc_parser::decode_alu_group(cf_node* cf, unsigned &i, unsigned &gcnt) { 323 int bc_parser::prepare_alu_clause(cf_node* cf) { 358 int bc_parser::prepare_alu_group(cf_node* cf, alu_group_node *g) { 565 int bc_parser::decode_fetch_clause(cf_node* cf) { 583 int bc_parser::prepare_fetch_clause(cf_node *cf) { 678 cf_node *c = *I; 751 cf_node *cf_next = sh->create_cf(); 804 cf_node *cf_next = sh->create_cf() [all...] |
sb_expr.h | 72 bool fold(cf_node &n);
|
sb_pass.cpp | 75 bool vpass::visit(cf_node& n, bool enter) { return true; }
|
/external/mesa3d/src/gallium/drivers/freedreno/ir3/ |
ir3_nir_lower_if_else.c | 219 if (nir_cf_node_is_first(&block->cf_node)) 222 nir_cf_node *prev_node = nir_cf_node_prev(&block->cf_node); 251 assert(prev_block->cf_node.type == nir_cf_node_block); 292 nir_cf_node_remove(&if_stmt->cf_node);
|
/external/mesa3d/src/intel/vulkan/ |
anv_nir_apply_dynamic_offsets.c | 98 nir_cf_node_insert(b->cursor, &if_stmt->cf_node); 112 src1->pred = exec_node_data(nir_block, tnode, cf_node.node); 123 src2->pred = exec_node_data(nir_block, enode, cf_node.node); 131 nir_instr_insert_after_cf(&if_stmt->cf_node, &phi->instr);
|