Lines Matching defs:instr

300 is_trivial_bcsel(const nir_instr *instr, bool allow_non_phi_src)
302 if (instr->type != nir_instr_type_alu)
305 nir_alu_instr *const bcsel = nir_instr_as_alu(instr);
311 bcsel->src[i].src.ssa->parent_instr->block != instr->block)
414 nir_foreach_instr_safe(instr, header_block) {
415 if (instr->type != nir_instr_type_alu)
418 nir_alu_instr *const alu = nir_instr_as_alu(instr);
526 nir_ssa_dest_init(&phi->instr, &phi->dest,
530 nir_builder_instr_insert(b, &phi->instr);
541 nir_instr_remove_v(&alu->instr);
542 nir_instr_free(&alu->instr);
649 nir_foreach_instr_safe(instr, header_block) {
650 if (!is_trivial_bcsel(instr, false))
653 nir_alu_instr *const bcsel = nir_instr_as_alu(instr);
688 nir_ssa_dest_init(&phi->instr,
695 nir_builder_instr_insert(b, &phi->instr);
706 nir_instr_remove_v(&bcsel->instr);
707 nir_instr_free(&bcsel->instr);
728 nir_instr *instr = nir_block_last_instr(block);
729 return instr->type == nir_instr_type_jump &&
730 nir_instr_as_jump(instr)->type == nir_jump_continue;
854 nir_foreach_instr(instr, after_if_block) {
855 if (instr->type != nir_instr_type_phi)
858 nir_phi_instr *phi = nir_instr_as_phi(instr);
903 b->cursor = nir_after_instr(&alu_instr->instr);
950 nir_foreach_instr_safe(instr, after_if_block) {
951 if (instr->type != nir_instr_type_phi)
954 nir_phi_instr *phi = nir_instr_as_phi(instr);
1219 nir_ssa_dest_init(&nalu->instr, &nalu->dest.dest,
1235 nir_builder_instr_insert(b, &nalu->instr);
1581 nir_foreach_instr_safe(instr, after_next_if_block) {
1582 if (instr->type != nir_instr_type_phi)
1585 exec_node_remove(&instr->node);
1586 exec_list_push_tail(&next_blk->instr_list, &instr->node);
1587 instr->block = next_blk;