Home
last modified time | relevance | path

Searched refs:nir_cf_node (Results 1 – 25 of 29) sorted by relevance

12

/external/mesa3d/src/compiler/nir/
Dnir_control_flow.h52 void nir_cf_node_insert(nir_cursor cursor, nir_cf_node *node);
56 nir_cf_node_insert_after(nir_cf_node *node, nir_cf_node *after) in nir_cf_node_insert_after()
63 nir_cf_node_insert_before(nir_cf_node *node, nir_cf_node *before) in nir_cf_node_insert_before()
70 nir_cf_node_insert_begin(struct exec_list *list, nir_cf_node *node) in nir_cf_node_insert_begin()
77 nir_cf_node_insert_end(struct exec_list *list, nir_cf_node *node) in nir_cf_node_insert_end()
145 void nir_cf_list_clone(nir_cf_list *dst, nir_cf_list *src, nir_cf_node *parent,
157 nir_cf_node_remove(nir_cf_node *node) in nir_cf_node_remove()
Dnir_control_flow.c107 link_non_block_to_block(nir_cf_node *node, nir_block *block) 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()
298 nir_cf_node *parent = block->cf_node.parent; in block_add_normal_succs()
300 nir_cf_node *next = nir_cf_node_next(parent); in block_add_normal_succs()
316 nir_cf_node *next = nir_cf_node_next(&block->cf_node); in block_add_normal_succs()
428 insert_non_block(nir_block *before, nir_cf_node *node, nir_block *after) in insert_non_block()
438 nearest_loop(nir_cf_node *node) in nearest_loop()
470 nir_cf_node *after = nir_cf_node_next(&loop->cf_node); in nir_handle_add_jump()
524 update_if_uses(nir_cf_node *node) in update_if_uses()
577 nir_cf_node_insert(nir_cursor cursor, nir_cf_node *node) in nir_cf_node_insert()
[all …]
Dnir.h1537 typedef struct nir_cf_node { struct
1540 struct nir_cf_node *parent; argument
1541 } nir_cf_node; typedef
1544 nir_cf_node cf_node;
1610 nir_cf_node cf_node;
1648 nir_cf_node cf_node;
1669 nir_cf_node cf_node;
1715 static inline nir_cf_node *
1716 nir_cf_node_next(nir_cf_node *node) in nir_cf_node_next()
1722 return exec_node_data(nir_cf_node, next, node); in nir_cf_node_next()
[all …]
Dnir_sweep.c41 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) { in sweep_if()
83 foreach_list_typed(nir_cf_node, cf_node, node, &iff->else_list) { in sweep_if()
93 foreach_list_typed(nir_cf_node, cf_node, node, &loop->body) { in sweep_loop()
99 sweep_cf_node(nir_shader *nir, nir_cf_node *cf_node) in sweep_cf_node()
128 foreach_list_typed(nir_cf_node, cf_node, node, &impl->body) { in sweep_impl()
Dnir_opt_dead_cf.c72 remove_after_cf_node(nir_cf_node *node) in remove_after_cf_node()
74 nir_cf_node *end = node; in remove_after_cf_node()
136 cf_node_has_side_effects(nir_cf_node *node) in cf_node_has_side_effects()
260 nir_cf_node *prev = NULL; in dead_cf_list()
262 foreach_list_typed(nir_cf_node, cur, node, list) { in dead_cf_list()
276 cur = exec_node_data(nir_cf_node, exec_list_get_head(list), in dead_cf_list()
Dnir_opt_loop_unroll.c57 foreach_list_typed_safe(nir_cf_node, node, node, &loop->body) { in loop_prepare_for_unroll()
238 get_complex_unroll_insert_location(nir_cf_node *node, bool continue_from_then) in get_complex_unroll_insert_location()
393 nir_cf_node *unroll_loc = &loop->cf_node; in complex_unroll()
419 unroll_loc = exec_node_data(nir_cf_node, in complex_unroll()
488 process_loops(nir_shader *sh, nir_cf_node *cf_node, bool *innermost_loop) in process_loops()
498 foreach_list_typed_safe(nir_cf_node, nested_node, node, &if_stmt->then_list) in process_loops()
500 foreach_list_typed_safe(nir_cf_node, nested_node, node, &if_stmt->else_list) in process_loops()
506 foreach_list_typed_safe(nir_cf_node, nested_node, node, &loop->body) in process_loops()
571 foreach_list_typed_safe(nir_cf_node, node, node, &impl->body) { in nir_opt_loop_unroll_impl()
Dnir_to_lcssa.c159 convert_to_lcssa(nir_cf_node *cf_node, lcssa_state *state) in convert_to_lcssa()
168 foreach_list_typed(nir_cf_node, nested_node, node, &if_stmt->then_list) in convert_to_lcssa()
170 foreach_list_typed(nir_cf_node, nested_node, node, &if_stmt->else_list) in convert_to_lcssa()
178 foreach_list_typed(nir_cf_node, nested_node, node, &state->loop->body) in convert_to_lcssa()
199 foreach_list_typed(nir_cf_node, node, node, &state->loop->body) in nir_convert_loop_to_lcssa()
Dnir_loop_analyze.h33 contains_other_jump(nir_cf_node *node, nir_instr *expected_jump) in contains_other_jump()
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_loop_analyze.c308 foreach_list_typed_safe(nir_cf_node, node, node, &state->loop->body) { in find_loop_terminators()
720 foreach_list_typed_safe(nir_cf_node, node, node, &state->loop->body) { in get_loop_info()
767 foreach_list_typed_safe(nir_cf_node, node, node, &state->loop->body) { in get_loop_info()
802 process_loops(nir_cf_node *cf_node, nir_variable_mode indirect_mask) in process_loops()
809 foreach_list_typed(nir_cf_node, nested_node, node, &if_stmt->then_list) in process_loops()
811 foreach_list_typed(nir_cf_node, nested_node, node, &if_stmt->else_list) in process_loops()
817 foreach_list_typed(nir_cf_node, nested_node, node, &loop->body) in process_loops()
842 foreach_list_typed(nir_cf_node, node, node, &impl->body) in nir_loop_analyze_impl()
Dnir_opt_if.c105 nir_cf_node *if_node = nir_cf_node_next(&header_block->cf_node); in opt_peel_loop_initial_if()
156 foreach_list_typed(nir_cf_node, cf_node, node, entry_list) { in opt_peel_loop_initial_if()
207 foreach_list_typed(nir_cf_node, cf_node, node, cf_list) { in opt_if_cf_list()
Dnir_validate.c85 nir_cf_node *parent_node;
692 static void validate_cf_node(nir_cf_node *node, validate_state *state);
761 nir_cf_node *next = nir_cf_node_next(&block->cf_node); in validate_block()
813 nir_cf_node *prev_node = nir_cf_node_prev(&if_stmt->cf_node); in validate_if()
817 nir_cf_node *next_node = nir_cf_node_next(&if_stmt->cf_node); in validate_if()
825 nir_cf_node *old_parent = state->parent_node; in validate_if()
829 foreach_list_typed(nir_cf_node, cf_node, node, &if_stmt->then_list) { in validate_if()
834 foreach_list_typed(nir_cf_node, cf_node, node, &if_stmt->else_list) { in validate_if()
846 nir_cf_node *prev_node = nir_cf_node_prev(&loop->cf_node); in validate_loop()
850 nir_cf_node *next_node = nir_cf_node_next(&loop->cf_node); in validate_loop()
[all …]
Dnir_opt_trivial_continues.c42 nir_cf_node *prev_node = nir_cf_node_prev(&block->cf_node); in lower_trivial_continues_block()
78 foreach_list_typed(nir_cf_node, cf_node, node, cf_list) { in lower_trivial_continues_list()
Dnir_lower_returns.c46 predicate_following(nir_cf_node *node, struct lower_returns_state *state) in predicate_following()
223 foreach_list_typed_reverse_safe(nir_cf_node, node, node, cf_list) { in lower_returns_in_cf_list()
Dnir.c268 cf_init(nir_cf_node *node, nir_cf_node_type type) in cf_init()
897 nir_cf_node_get_function(nir_cf_node *node) in nir_cf_node_get_function()
1688 nir_cf_node *cf_next = nir_cf_node_next(&block->cf_node); in nir_block_cf_tree_next()
1692 nir_cf_node *parent = block->cf_node.parent; in nir_block_cf_tree_next()
1724 nir_cf_node *cf_prev = nir_cf_node_prev(&block->cf_node); in nir_block_cf_tree_prev()
1728 nir_cf_node *parent = block->cf_node.parent; in nir_block_cf_tree_prev()
1752 nir_block *nir_cf_node_cf_tree_first(nir_cf_node *node) in nir_cf_node_cf_tree_first()
1779 nir_block *nir_cf_node_cf_tree_last(nir_cf_node *node) in nir_cf_node_cf_tree_last()
1806 nir_block *nir_cf_node_cf_tree_next(nir_cf_node *node) in nir_cf_node_cf_tree_next()
1825 nir_cf_node *next_node = nir_cf_node_next(&block->cf_node); in nir_block_get_following_if()
[all …]
Dnir_print.c967 static void print_cf_node(nir_cf_node *node, print_state *state,
1025 foreach_list_typed(nir_cf_node, node, node, &if_stmt->then_list) { in print_if()
1030 foreach_list_typed(nir_cf_node, node, node, &if_stmt->else_list) { in print_if()
1044 foreach_list_typed(nir_cf_node, node, node, &loop->body) { in print_loop()
1052 print_cf_node(nir_cf_node *node, print_state *state, unsigned int tabs) in print_cf_node()
1107 foreach_list_typed(nir_cf_node, node, node, &impl->body) { in print_function_impl()
Dnir_opt_conditional_discard.c38 nir_cf_node *prev_node = nir_cf_node_prev(&block->cf_node); in nir_opt_conditional_discard_block()
Dnir_propagate_invariant.c54 add_cf_node(nir_cf_node *cf, struct set *invariants) in add_cf_node()
Dnir_builder.h79 nir_builder_cf_insert(nir_builder *build, nir_cf_node *cf) in nir_builder_cf_insert()
85 nir_builder_is_inside_cf(nir_builder *build, nir_cf_node *cf_node) in nir_builder_is_inside_cf()
88 for (nir_cf_node *n = &block->cf_node; n; n = n->parent) { in nir_builder_is_inside_cf()
Dnir_opt_peephole_select.c156 nir_cf_node *prev_node = nir_cf_node_prev(&block->cf_node); in nir_opt_peephole_select_block()
Dnir_opt_gcm.c78 foreach_list_typed(nir_cf_node, node, node, cf_list) { in gcm_build_block_info()
Dnir_clone.c595 foreach_list_typed(nir_cf_node, cf, node, list) { in clone_cf_list()
638 nir_cf_list_clone(nir_cf_list *dst, nir_cf_list *src, nir_cf_node *parent, in nir_cf_list_clone()
Dnir_serialize.c948 write_cf_node(write_ctx *ctx, nir_cf_node *cf) in write_cf_node()
991 foreach_list_typed(nir_cf_node, cf, node, cf_list) { in write_cf_list()
/external/mesa3d/src/gallium/drivers/freedreno/ir3/
Dir3_nir_lower_if_else.c222 nir_cf_node *prev_node = nir_cf_node_prev(&block->cf_node); in lower_if_else_block()
/external/mesa3d/src/broadcom/compiler/
Dnir_to_vir.c1811 foreach_list_typed(nir_cf_node, node, node, list) { in ntq_emit_cf_list()
/external/mesa3d/src/intel/compiler/
Dbrw_vec4_nir.cpp81 foreach_list_typed(nir_cf_node, node, node, list) { in nir_emit_cf_list()

12