Searched refs:last_instr (Results 1 – 9 of 9) sorted by relevance
81 nir_instr *last_instr = NULL; in nir_is_trivial_loop_if() local84 last_instr = nir_block_last_instr(break_block); in nir_is_trivial_loop_if()85 assert(last_instr && last_instr->type == nir_instr_type_jump && in nir_is_trivial_loop_if()86 nir_instr_as_jump(last_instr)->type == nir_jump_break); in nir_is_trivial_loop_if()89 if (contains_other_jump(&nif->cf_node, last_instr)) in nir_is_trivial_loop_if()
60 nir_instr *last_instr = nir_block_last_instr(block); in lower_trivial_continues_block() local61 if (!last_instr || !instr_is_continue(last_instr)) in lower_trivial_continues_block()68 nir_instr_remove(last_instr); in lower_trivial_continues_block()
174 nir_instr *last_instr = nir_block_last_instr(block); in lower_returns_in_block() local175 if (last_instr == NULL) in lower_returns_in_block()178 if (last_instr->type != nir_instr_type_jump) in lower_returns_in_block()181 nir_jump_instr *jump = nir_instr_as_jump(last_instr); in lower_returns_in_block()
277 nir_instr *last_instr = nir_block_last_instr(block); in get_parallel_copy_at_end_of_block() local278 if (last_instr == NULL) in get_parallel_copy_at_end_of_block()284 if (last_instr->type == nir_instr_type_jump) in get_parallel_copy_at_end_of_block()285 last_instr = nir_instr_prev(last_instr); in get_parallel_copy_at_end_of_block()287 if (last_instr && last_instr->type == nir_instr_type_parallel_copy) in get_parallel_copy_at_end_of_block()288 return nir_instr_as_parallel_copy(last_instr); in get_parallel_copy_at_end_of_block()
48 nir_instr *last_instr; member584 if (block_info->last_instr) { in gcm_place_instr()585 exec_node_insert_node_before(&block_info->last_instr->node, in gcm_place_instr()598 block_info->last_instr = instr; in gcm_place_instr()
197 nir_instr *last_instr = nir_block_last_instr(block); in opt_peel_loop_initial_if() local198 if (last_instr && last_instr->type == nir_instr_type_jump) in opt_peel_loop_initial_if()258 nir_instr *last_instr = nir_block_last_instr(continue_block); in opt_peel_loop_initial_if() local259 if (last_instr && last_instr->type == nir_instr_type_jump) in opt_peel_loop_initial_if()260 nir_instr_remove(last_instr); in opt_peel_loop_initial_if()
120 nir_instr *last_instr = nir_block_last_instr(last_block); in opt_constant_if() local121 if (last_instr->type == nir_instr_type_jump) in opt_constant_if()
71 nir_instr *last_instr = nir_block_last_instr(nir_loop_last_block(loop)); in loop_prepare_for_unroll() local72 if (last_instr && last_instr->type == nir_instr_type_jump) { in loop_prepare_for_unroll()73 nir_instr_remove(last_instr); in loop_prepare_for_unroll()
3793 nir_instr *last_instr = nir_block_last_instr(block); in nir_after_block_before_jump() local3794 if (last_instr && last_instr->type == nir_instr_type_jump) { in nir_after_block_before_jump()3795 return nir_before_instr(last_instr); in nir_after_block_before_jump()