Home
last modified time | relevance | path

Searched refs:if_stmt (Results 1 – 25 of 72) sorted by relevance

123

/external/mesa3d/src/compiler/nir/
Dnir_opt_conditional_discard.c45 nir_if *if_stmt = nir_cf_node_as_if(prev_node); in nir_opt_conditional_discard_block() local
46 nir_block *then_block = nir_if_first_then_block(if_stmt); in nir_opt_conditional_discard_block()
47 nir_block *else_block = nir_if_first_else_block(if_stmt); in nir_opt_conditional_discard_block()
50 if (nir_if_last_else_block(if_stmt) != else_block) in nir_opt_conditional_discard_block()
56 if (nir_if_last_then_block(if_stmt) != then_block) in nir_opt_conditional_discard_block()
65 nir_block *after = nir_cf_node_as_block(nir_cf_node_next(&if_stmt->cf_node)); in nir_opt_conditional_discard_block()
87 assert(if_stmt->condition.is_ssa); in nir_opt_conditional_discard_block()
88 nir_ssa_def *cond = if_stmt->condition.ssa; in nir_opt_conditional_discard_block()
117 nir_cf_node_remove(&if_stmt->cf_node); in nir_opt_conditional_discard_block()
Dnir_opt_dead_cf.c84 opt_constant_if(nir_if *if_stmt, bool condition) in opt_constant_if() argument
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()
91 : nir_if_last_else_block(if_stmt); in opt_constant_if()
122 remove_after_cf_node(&if_stmt->cf_node); in opt_constant_if()
126 struct exec_list *cf_list = condition ? &if_stmt->then_list in opt_constant_if()
127 : &if_stmt->else_list; in opt_constant_if()
131 nir_cf_reinsert(&list, nir_after_cf_node(&if_stmt->cf_node)); in opt_constant_if()
132 nir_cf_node_remove(&if_stmt->cf_node); in opt_constant_if()
314 nir_if *if_stmt = nir_cf_node_as_if(cur); in dead_cf_list() local
[all …]
Dnir_opt_peephole_select.c204 nir_if *if_stmt = nir_cf_node_as_if(prev_node); in nir_opt_peephole_select_block() local
206 if (if_stmt->control == nir_selection_control_dont_flatten) in nir_opt_peephole_select_block()
209 nir_block *then_block = nir_if_first_then_block(if_stmt); in nir_opt_peephole_select_block()
210 nir_block *else_block = nir_if_first_else_block(if_stmt); in nir_opt_peephole_select_block()
213 if (nir_if_last_then_block(if_stmt) != then_block || in nir_opt_peephole_select_block()
214 nir_if_last_else_block(if_stmt) != else_block) in nir_opt_peephole_select_block()
217 if (if_stmt->control == nir_selection_control_flatten) { in nir_opt_peephole_select_block()
231 if (count > limit && if_stmt->control != nir_selection_control_flatten) in nir_opt_peephole_select_block()
264 nir_src_copy(&sel->src[0].src, &if_stmt->condition, sel); in nir_opt_peephole_select_block()
289 nir_cf_node_remove(&if_stmt->cf_node); in nir_opt_peephole_select_block()
Dnir_lower_returns.c58 nir_if *if_stmt = nir_push_if(b, nir_load_var(b, state->return_flag)); in predicate_following() local
73 nir_cf_extract(&list, nir_after_cf_node(&if_stmt->cf_node), in predicate_following()
76 nir_cf_reinsert(&list, nir_before_cf_list(&if_stmt->else_list)); in predicate_following()
104 lower_returns_in_if(nir_if *if_stmt, struct lower_returns_state *state) in lower_returns_in_if() argument
111 then_progress = lower_returns_in_cf_list(&if_stmt->then_list, state); in lower_returns_in_if()
112 else_progress = lower_returns_in_cf_list(&if_stmt->else_list, state); in lower_returns_in_if()
127 predicate_following(&if_stmt->cf_node, state); in lower_returns_in_if()
133 nir_cf_extract(&list, nir_after_cf_node(&if_stmt->cf_node), in lower_returns_in_if()
140 nir_cf_reinsert(&list, nir_after_cf_list(&if_stmt->else_list)); in lower_returns_in_if()
142 nir_cf_reinsert(&list, nir_after_cf_list(&if_stmt->then_list)); in lower_returns_in_if()
Dnir_control_flow.c108 nir_if *if_stmt = nir_cf_node_as_if(node); in link_non_block_to_block() local
110 nir_block *last_then_block = nir_if_last_then_block(if_stmt); in link_non_block_to_block()
111 nir_block *last_else_block = nir_if_last_else_block(if_stmt); in link_non_block_to_block()
136 nir_if *if_stmt = nir_cf_node_as_if(node); in link_block_to_non_block() local
138 nir_block *first_then_block = nir_if_first_then_block(if_stmt); in link_block_to_non_block()
139 nir_block *first_else_block = nir_if_first_else_block(if_stmt); in link_block_to_non_block()
539 nir_if *if_stmt = nir_cf_node_as_if(node); in update_if_uses() local
541 if_stmt->condition.parent_if = if_stmt; in update_if_uses()
542 if (if_stmt->condition.is_ssa) { in update_if_uses()
543 list_addtail(&if_stmt->condition.use_link, in update_if_uses()
[all …]
Dnir_loop_analyze.h51 nir_if *if_stmt = nir_cf_node_as_if(node); in contains_other_jump() local
53 foreach_list_typed_safe(nir_cf_node, node, node, &if_stmt->then_list) { in contains_other_jump()
58 foreach_list_typed_safe(nir_cf_node, node, node, &if_stmt->else_list) { in contains_other_jump()
Dnir_opt_copy_propagate.c261 copy_prop_if(nir_if *if_stmt) in copy_prop_if() argument
263 return copy_prop_src(&if_stmt->condition, NULL, if_stmt, 1); in copy_prop_if()
277 nir_if *if_stmt = nir_block_get_following_if(block); in nir_copy_prop_impl() local
278 if (if_stmt && copy_prop_if(if_stmt)) in nir_copy_prop_impl()
Dnir_opt_rematerialize_compares.c152 nir_if *const if_stmt = use->parent_if; in nir_opt_rematerialize_compares_impl() local
155 nir_cf_node_as_block(nir_cf_node_prev(&if_stmt->cf_node)); in nir_opt_rematerialize_compares_impl()
167 nir_if_rewrite_condition(if_stmt, in nir_opt_rematerialize_compares_impl()
Dnir.c441 nir_if *if_stmt = ralloc(shader, nir_if); in nir_if_create() local
443 if_stmt->control = nir_selection_control_none; in nir_if_create()
445 cf_init(&if_stmt->cf_node, nir_cf_node_if); in nir_if_create()
446 src_init(&if_stmt->condition); in nir_if_create()
449 exec_list_make_empty(&if_stmt->then_list); in nir_if_create()
450 exec_list_push_tail(&if_stmt->then_list, &then->cf_node.node); in nir_if_create()
451 then->cf_node.parent = &if_stmt->cf_node; in nir_if_create()
454 exec_list_make_empty(&if_stmt->else_list); in nir_if_create()
455 exec_list_push_tail(&if_stmt->else_list, &else_stmt->cf_node.node); in nir_if_create()
456 else_stmt->cf_node.parent = &if_stmt->cf_node; in nir_if_create()
[all …]
Dnir_validate.c73 nir_if *if_stmt; member
152 validate_assert(state, state->if_stmt); in validate_reg_src()
216 validate_assert(state, src->parent_if == state->if_stmt); in validate_src()
1178 nir_if *if_stmt = nir_cf_node_as_if(next); in validate_block() local
1180 nir_if_first_then_block(if_stmt)); in validate_block()
1182 nir_if_first_else_block(if_stmt)); in validate_block()
1211 validate_if(nir_if *if_stmt, validate_state *state) in validate_if() argument
1215 state->if_stmt = if_stmt; in validate_if()
1217 validate_assert(state, !exec_node_is_head_sentinel(if_stmt->cf_node.node.prev)); in validate_if()
1218 nir_cf_node *prev_node = nir_cf_node_prev(&if_stmt->cf_node); in validate_if()
[all …]
Dnir_opt_gcm.c96 nir_if *if_stmt = nir_cf_node_as_if(node); in gcm_build_block_info() local
97 gcm_build_block_info(&if_stmt->then_list, state, loop_depth); in gcm_build_block_info()
98 gcm_build_block_info(&if_stmt->else_list, state, loop_depth); in gcm_build_block_info()
420 nir_if *if_stmt = use_src->parent_if; in gcm_schedule_late_def() local
426 nir_cf_node_as_block(nir_cf_node_prev(&if_stmt->cf_node)); in gcm_schedule_late_def()
Dnir_divergence_analysis.c765 visit_if(nir_if *if_stmt, struct divergence_state *state) in visit_if() argument
770 then_state.divergent_loop_cf |= if_stmt->condition.ssa->divergent; in visit_if()
771 progress |= visit_cf_list(&if_stmt->then_list, &then_state); in visit_if()
774 else_state.divergent_loop_cf |= if_stmt->condition.ssa->divergent; in visit_if()
775 progress |= visit_cf_list(&if_stmt->else_list, &else_state); in visit_if()
778 nir_foreach_instr(instr, nir_cf_node_cf_tree_next(&if_stmt->cf_node)) { in visit_if()
785 if_stmt->condition.ssa->divergent); in visit_if()
Dnir_propagate_invariant.c57 nir_if *if_stmt = nir_cf_node_as_if(cf); in add_cf_node() local
58 add_src(&if_stmt->condition, invariants); in add_cf_node()
Dnir_opt_loop_unroll.c228 nir_if *if_stmt = nir_cf_node_as_if(node); in get_complex_unroll_insert_location() local
230 return nir_after_block(nir_if_last_then_block(if_stmt)); in get_complex_unroll_insert_location()
232 return nir_after_block(nir_if_last_else_block(if_stmt)); in get_complex_unroll_insert_location()
849 nir_if *if_stmt = nir_cf_node_as_if(cf_node); in process_loops() local
850 progress |= process_loops_in_block(sh, &if_stmt->then_list, in process_loops()
852 progress |= process_loops_in_block(sh, &if_stmt->else_list, in process_loops()
Dnir_to_lcssa.c296 nir_if *if_stmt = nir_cf_node_as_if(cf_node); in convert_to_lcssa() local
297 foreach_list_typed(nir_cf_node, nested_node, node, &if_stmt->then_list) in convert_to_lcssa()
299 foreach_list_typed(nir_cf_node, nested_node, node, &if_stmt->else_list) in convert_to_lcssa()
Dnir_opt_copy_prop_vars.c261 nir_if *if_stmt = nir_cf_node_as_if(cf_node); in gather_vars_written() local
265 foreach_list_typed_safe(nir_cf_node, cf_node, node, &if_stmt->then_list) in gather_vars_written()
268 foreach_list_typed_safe(nir_cf_node, cf_node, node, &if_stmt->else_list) in gather_vars_written()
1199 nir_if *if_stmt = nir_cf_node_as_if(cf_node); in copy_prop_vars_cf_node() local
1212 foreach_list_typed_safe(nir_cf_node, cf_node, node, &if_stmt->then_list) in copy_prop_vars_cf_node()
1215 foreach_list_typed_safe(nir_cf_node, cf_node, node, &if_stmt->else_list) in copy_prop_vars_cf_node()
/external/mesa3d/src/compiler/spirv/
Dvtn_cfg.c423 struct vtn_if *if_stmt = vtn_cf_node_as_if(node); in VTN_DECL_CF_NODE_FIND() local
426 assert(if_stmt->merge_block != target_block); in VTN_DECL_CF_NODE_FIND()
428 vtn_fail_if(if_stmt->merge_block != NULL, in VTN_DECL_CF_NODE_FIND()
721 struct vtn_if *if_stmt = rzalloc(b, struct vtn_if); in vtn_process_block() local
723 if_stmt->node.type = vtn_cf_node_type_if; in vtn_process_block()
724 if_stmt->node.parent = cf_parent; in vtn_process_block()
725 if_stmt->condition = block->branch[1]; in vtn_process_block()
726 list_inithead(&if_stmt->then_body); in vtn_process_block()
727 list_inithead(&if_stmt->else_body); in vtn_process_block()
729 list_addtail(&if_stmt->node.link, cf_list); in vtn_process_block()
[all …]
/external/mesa3d/src/compiler/glsl/
Dloop_analysis.cpp355 loop_variable_state::insert(ir_if *if_stmt, bool continue_from_then) in insert() argument
358 loop_terminator *t = new(mem_ctx) loop_terminator(if_stmt, in insert()
515 ir_if *if_stmt = ((ir_instruction *) node)->as_if(); in visit_leave() local
517 if (if_stmt != NULL) in visit_leave()
518 try_add_loop_terminator(ls, if_stmt); in visit_leave()
616 ir_if *if_stmt = t->ir; in visit_leave() local
621 ir_expression *cond = if_stmt->condition->as_expression(); in visit_leave()
Dlower_variable_index_to_cond_assign.cpp489 ir_if *if_stmt = new(mem_ctx) ir_if(orig_assign->condition); in convert_dereference_array() local
490 ir_factory then_body(&if_stmt->then_instructions, body.mem_ctx); in convert_dereference_array()
493 body.emit(if_stmt); in convert_dereference_array()
/external/mesa3d/src/gallium/drivers/lima/ir/pp/
Dnir.c639 static bool ppir_emit_if(ppir_compiler *comp, nir_if *if_stmt) in ppir_emit_if() argument
643 nir_block *nir_else_block = nir_if_first_else_block(if_stmt); in ppir_emit_if()
645 (nir_else_block == nir_if_last_else_block(if_stmt) && in ppir_emit_if()
654 &if_stmt->condition, 1); in ppir_emit_if()
670 if (!ppir_emit_cf_list(comp, &if_stmt->then_list)) in ppir_emit_if()
674 nir_block *nblock = nir_if_last_else_block(if_stmt); in ppir_emit_if()
683 else_branch->target = ppir_get_block(comp, nir_if_first_else_block(if_stmt)); in ppir_emit_if()
685 nir_block *last_then_block = nir_if_last_then_block(if_stmt); in ppir_emit_if()
699 if (!ppir_emit_cf_list(comp, &if_stmt->else_list)) in ppir_emit_if()
/external/python/cpython2/Include/
Dgraminit.h40 #define if_stmt 293 macro
/external/python/cpython3/Include/
Dgraminit.h44 #define if_stmt 297 macro
/external/tensorflow/tensorflow/python/autograph/operators/
Dcontrol_flow_test.py962 control_flow.if_stmt(
992 control_flow.if_stmt(
1024 control_flow.if_stmt(
1050 control_flow.if_stmt(
1078 control_flow.if_stmt(
1106 control_flow.if_stmt(
1151 control_flow.if_stmt(
/external/python/cpython3/Lib/
Dsymbol.py65 if_stmt = 297 variable
/external/python/cpython2/Lib/
Dsymbol.py50 if_stmt = 293 variable

123