• Home
  • Raw
  • Download

Lines Matching refs:definitions

537    if (instr->definitions.empty())  in pseudo_propagate_temp()
542 std::all_of(instr->definitions.begin(), instr->definitions.end(), in pseudo_propagate_temp()
551 std::none_of(instr->definitions.begin(), instr->definitions.end(), in pseudo_propagate_temp()
580 decrease -= instr->definitions.back().bytes(); in pseudo_propagate_temp()
581 instr->definitions.pop_back(); in pseudo_propagate_temp()
587 if (temp.regClass() == instr->definitions[0].regClass()) in pseudo_propagate_temp()
621 tmp->definitions.size())); in to_VOP3()
623 for (unsigned i = 0; i < instr->definitions.size(); i++) { in to_VOP3()
624 instr->definitions[i] = tmp->definitions[i]; in to_VOP3()
625 if (instr->definitions[i].isTemp()) { in to_VOP3()
626 ssa_info& info = ctx.info[instr->definitions[i].tempId()]; in to_VOP3()
650 for (unsigned i = 0; i < instr->definitions.size(); i++) { in to_SDWA()
651 ssa_info& info = ctx.info[instr->definitions[i].tempId()]; in to_SDWA()
783 if (prevent_overflow && !add_instr->definitions[0].isNUW()) in parse_base_offset()
816 bool soe = smem->operands.size() >= (!smem->definitions.empty() ? 3 : 4); in skip_smem_offset_align()
862 bool soe = smem.operands.size() >= (!smem.definitions.empty() ? 3 : 4); in smem_combine()
871 smem.opcode, Format::SMEM, smem.operands.size() + 1, smem.definitions.size()); in smem_combine()
874 if (smem.definitions.empty()) in smem_combine()
877 if (!smem.definitions.empty()) in smem_combine()
878 new_instr->definitions[0] = smem.definitions[0]; in smem_combine()
1035 unsigned size = instr->definitions[0].bytes(); in parse_extract()
1040 assert(instr->operands[0].bytes() == 4 && instr->definitions[1].bytes() == 2); in parse_extract()
1157 for (Definition& def : instr->definitions) in apply_extract()
1530 if (instr->definitions.empty()) { in label_instruction()
1545 ctx.info[instr->definitions[0].tempId()].set_canonicalized(); in label_instruction()
1549 ctx.info[instr->definitions[0].tempId()].set_vopc(instr.get()); in label_instruction()
1554 ctx.info[instr->definitions[0].tempId()].set_vop3p(instr.get()); in label_instruction()
1562 instr->operands[0].regClass() == instr->definitions[0].regClass(); in label_instruction()
1564 ctx.info[instr->definitions[0].tempId()].set_temp(instr->operands[0].getTemp()); in label_instruction()
1587 Definition def = instr->definitions[0]; in label_instruction()
1596 instr->definitions[0] = def; in label_instruction()
1602 ctx.info[instr->definitions[0].tempId()].set_vec(instr.get()); in label_instruction()
1609 instr->operands[0].getTemp() == split->definitions[0].getTemp()) in label_instruction()
1610 ctx.info[instr->definitions[0].tempId()].set_temp(split->operands[0].getTemp()); in label_instruction()
1620 for (Definition def : instr->definitions) { in label_instruction()
1627 if (instr->definitions.size() == 2 && instr->operands[0].isTemp() && in label_instruction()
1628 instr->definitions[0].bytes() == instr->definitions[1].bytes()) { in label_instruction()
1629 ctx.info[instr->definitions[1].tempId()].set_split(instr.get()); in label_instruction()
1632 ctx.info[instr->definitions[0].tempId()].set_temp(instr->operands[0].getTemp()); in label_instruction()
1633 ctx.info[instr->definitions[1].tempId()].set_extract(instr.get()); in label_instruction()
1643 for (unsigned i = 0; i < instr->definitions.size(); in label_instruction()
1644 split_offset += instr->definitions[i++].bytes()) { in label_instruction()
1649 vec->operands[vec_index].bytes() != instr->definitions[i].bytes()) in label_instruction()
1654 ctx.info[instr->definitions[i].tempId()].set_constant(ctx.program->gfx_level, in label_instruction()
1657 ctx.info[instr->definitions[i].tempId()].set_undefined(); in label_instruction()
1660 ctx.info[instr->definitions[i].tempId()].set_temp(vec_op.getTemp()); in label_instruction()
1668 const unsigned dst_offset = index * instr->definitions[0].bytes(); in label_instruction()
1679 } else if (offset != dst_offset || op.bytes() != instr->definitions[0].bytes()) { in label_instruction()
1687 uint32_t mask = u_bit_consecutive(0, instr->definitions[0].bytes() * 8u); in label_instruction()
1690 Operand::get_const(ctx.program->gfx_level, val, instr->definitions[0].bytes()); in label_instruction()
1694 if (instr->operands[0].bytes() != instr->definitions[0].bytes()) { in label_instruction()
1699 ctx.info[instr->definitions[0].tempId()].set_temp(instr->operands[0].getTemp()); in label_instruction()
1701 ctx.info[instr->definitions[0].tempId()].set_extract(instr.get()); in label_instruction()
1712 instr->operands[0].regClass() != instr->definitions[0].regClass()) { in label_instruction()
1721 instr->definitions[0] = old_copy->definitions[0]; in label_instruction()
1726 ctx.info[op.tempId()].temp.type() == instr->definitions[0].regClass().type()) in label_instruction()
1729 ctx.info[instr->definitions[0].tempId()].set_vec(instr.get()); in label_instruction()
1734 if (instr->definitions[0].isFixed()) { in label_instruction()
1739 ctx.info[instr->definitions[0].tempId()].set_constant( in label_instruction()
1742 ctx.info[instr->definitions[0].tempId()].set_temp(instr->operands[0].getTemp()); in label_instruction()
1744 ctx.info[instr->definitions[0].tempId()].set_canonicalized(); in label_instruction()
1753 ctx.info[instr->definitions[0].tempId()].set_dpp16(instr.get()); in label_instruction()
1755 ctx.info[instr->definitions[0].tempId()].set_dpp8(instr.get()); in label_instruction()
1760 ctx.info[instr->definitions[0].tempId()].set_constant(ctx.program->gfx_level, 0u); in label_instruction()
1762 case aco_opcode::v_mul_f64: ctx.info[instr->definitions[0].tempId()].set_mul(instr.get()); break; in label_instruction()
1766 ctx.info[instr->definitions[0].tempId()].set_mul(instr.get()); in label_instruction()
1788 ctx.info[instr->definitions[0].tempId()].set_neg_abs(other); in label_instruction()
1790 ctx.info[instr->definitions[0].tempId()].set_abs(other); in label_instruction()
1792 ctx.info[instr->definitions[0].tempId()].set_neg(other); in label_instruction()
1794 ctx.info[instr->definitions[0].tempId()].set_fcanonicalize(other); in label_instruction()
1810 ctx.info[instr->definitions[0].tempId()].set_constant(ctx.program->gfx_level, 0u); in label_instruction()
1822 ctx.info[instr->definitions[0].tempId()].set_usedef(instr.get()); in label_instruction()
1848 ctx.info[instr->definitions[0].tempId()].set_vcc(instr->operands[2].getTemp()); in label_instruction()
1851 ctx.info[instr->definitions[0].tempId()].set_b2f(instr->operands[2].getTemp()); in label_instruction()
1853 ctx.info[instr->definitions[0].tempId()].set_b2i(instr->operands[2].getTemp()); in label_instruction()
1860 ctx.info[instr->definitions[0].tempId()].set_temp( in label_instruction()
1868 all_same_temp = instr->definitions[0].regClass() == instr->operands[0].regClass(); in label_instruction()
1875 ctx.info[instr->definitions[0].tempId()].set_temp(instr->operands[0].getTemp()); in label_instruction()
1883 ctx.info[instr->definitions[0].tempId()].set_undefined(); in label_instruction()
1902 ctx.info[instr->definitions[0].tempId()].set_add_sub(instr.get()); in label_instruction()
1907 ctx.info[instr->definitions[0].tempId()].set_uniform_bitwise(); in label_instruction()
1908 ctx.info[instr->definitions[1].tempId()].set_scc_invert( in label_instruction()
1911 ctx.info[instr->definitions[0].tempId()].set_uniform_bitwise(); in label_instruction()
1912 ctx.info[instr->definitions[1].tempId()].set_scc_invert( in label_instruction()
1913 ctx.info[instr->operands[0].tempId()].instr->definitions[1].getTemp()); in label_instruction()
1915 ctx.info[instr->definitions[0].tempId()].set_bitwise(instr.get()); in label_instruction()
1923 ctx.info[instr->definitions[1].tempId()].set_temp( in label_instruction()
1925 ctx.info[instr->definitions[0].tempId()].set_uniform_bool( in label_instruction()
1931 ctx.info[instr->definitions[1].tempId()].set_temp( in label_instruction()
1932 ctx.info[instr->operands[0].tempId()].instr->definitions[1].getTemp()); in label_instruction()
1933 ctx.info[instr->definitions[0].tempId()].set_uniform_bool( in label_instruction()
1934 ctx.info[instr->operands[0].tempId()].instr->definitions[1].getTemp()); in label_instruction()
1941 ctx.info[instr->definitions[0].tempId()].set_temp(instr->operands[0].getTemp()); in label_instruction()
1944 ctx.info[instr->definitions[0].tempId()].set_temp(instr->operands[0].getTemp()); in label_instruction()
1959 ctx.info[instr->definitions[0].tempId()].set_uniform_bitwise(); in label_instruction()
1961 ctx.info[instr->definitions[0].tempId()].set_bitwise(instr.get()); in label_instruction()
1969 ctx.info[instr->definitions[0].tempId()].set_usedef(instr.get()); in label_instruction()
1987 ctx.info[instr->definitions[0].tempId()].set_minmax(instr.get()); in label_instruction()
1993 ctx.info[instr->definitions[0].tempId()].set_uniform_bool(instr->operands[2].getTemp()); in label_instruction()
2003 ctx.info[instr->definitions[0].tempId()].set_temp(instr->operands[0].getTemp()); in label_instruction()
2010 ctx.info[instr->definitions[0].tempId()].set_canonicalized(); in label_instruction()
2013 if (instr->definitions[0].bytes() == 4) { in label_instruction()
2014 ctx.info[instr->definitions[0].tempId()].set_extract(instr.get()); in label_instruction()
2025 ctx.info[instr->definitions[0].tempId()].set_extract(instr.get()); in label_instruction()
2026 ctx.info[instr->definitions[0].tempId()].set_bitwise(instr.get()); in label_instruction()
2034 ctx.info[instr->definitions[0].tempId()].set_usedef(instr.get()); in label_instruction()
2044 ctx.info[instr->definitions[0].tempId()].set_f2f32(instr.get()); in label_instruction()
2052 if (!(ctx.info[instr->definitions[0].tempId()].label & (label_neg | label_abs))) in label_instruction()
2068 if (!--ctx.uses[instr->definitions[0].tempId()]) { in decrease_uses()
2086 if (instr->definitions.size() == 2) { in follow_operand()
2087 assert(instr->definitions[0].isTemp() && instr->definitions[0].tempId() == op.tempId()); in follow_operand()
2088 if (instr->definitions[1].isTemp() && ctx.uses[instr->definitions[1].tempId()]) in follow_operand()
2100 if (instr->definitions[0].regClass() != ctx.program->lane_mask) in combine_ordering_test()
2102 if (instr->definitions[1].isTemp() && ctx.uses[instr->definitions[1].tempId()]) in combine_ordering_test()
2182 new_instr->definitions[0] = instr->definitions[0]; in combine_ordering_test()
2184 ctx.info[instr->definitions[0].tempId()].label = 0; in combine_ordering_test()
2185 ctx.info[instr->definitions[0].tempId()].set_vopc(new_instr); in combine_ordering_test()
2197 if (instr->definitions[0].regClass() != ctx.program->lane_mask) in combine_comparison_ordering()
2199 if (instr->definitions[1].isTemp() && ctx.uses[instr->definitions[1].tempId()]) in combine_comparison_ordering()
2256 new_instr->definitions[0] = instr->definitions[0]; in combine_comparison_ordering()
2258 ctx.info[instr->definitions[0].tempId()].label = 0; in combine_comparison_ordering()
2259 ctx.info[instr->definitions[0].tempId()].set_vopc(new_instr); in combine_comparison_ordering()
2298 if (instr->definitions[0].regClass() != ctx.program->lane_mask) in combine_constant_comparison_ordering()
2300 if (instr->definitions[1].isTemp() && ctx.uses[instr->definitions[1].tempId()]) in combine_constant_comparison_ordering()
2381 new_instr->definitions[0] = instr->definitions[0]; in combine_constant_comparison_ordering()
2383 ctx.info[instr->definitions[0].tempId()].label = 0; in combine_constant_comparison_ordering()
2384 ctx.info[instr->definitions[0].tempId()].set_vopc(new_instr); in combine_constant_comparison_ordering()
2397 if (ctx.uses[instr->definitions[1].tempId()]) in combine_inverse_comparison()
2460 new_instr->definitions[0] = instr->definitions[0]; in combine_inverse_comparison()
2462 ctx.info[instr->definitions[0].tempId()].label = 0; in combine_inverse_comparison()
2463 ctx.info[instr->definitions[0].tempId()].set_vopc(new_instr); in combine_inverse_comparison()
2519 *precise = op1_instr->definitions[0].isPrecise() || op2_instr->definitions[0].isPrecise(); in match_op3_for_vop3()
2561 new_instr->definitions[0] = instr->definitions[0]; in create_vop3_for_op3()
2562 ctx.info[instr->definitions[0].tempId()].label = 0; in create_vop3_for_op3()
2697 if (instr->definitions[1].isTemp() && ctx.uses[instr->definitions[1].tempId()]) in combine_salu_not_bitwise()
2714 std::swap(instr->definitions[0], op2_instr->definitions[0]); in combine_salu_not_bitwise()
2715 std::swap(instr->definitions[1], op2_instr->definitions[1]); in combine_salu_not_bitwise()
2717 ctx.info[op2_instr->definitions[0].tempId()].label = 0; in combine_salu_not_bitwise()
2739 if (instr->definitions[0].isTemp() && ctx.info[instr->definitions[0].tempId()].is_uniform_bool()) in combine_salu_n2()
2747 if (ctx.uses[op2_instr->definitions[1].tempId()] || fixed_to_exec(op2_instr->operands[0])) in combine_salu_n2()
2757 ctx.info[instr->definitions[0].tempId()].label = 0; in combine_salu_n2()
2776 if (instr->opcode == aco_opcode::s_add_i32 && ctx.uses[instr->definitions[1].tempId()]) in combine_salu_lshl_add()
2782 ctx.uses[op2_instr->definitions[1].tempId()]) in combine_salu_lshl_add()
2798 ctx.info[instr->definitions[0].tempId()].label = 0; in combine_salu_lshl_add()
2833 new_instr->definitions[0] = instr->definitions[0]; in combine_add_sub_b2i()
2834 if (instr->definitions.size() == 2) { in combine_add_sub_b2i()
2835 new_instr->definitions[1] = instr->definitions[1]; in combine_add_sub_b2i()
2837 new_instr->definitions[1] = in combine_add_sub_b2i()
2848 ctx.info[instr->definitions[0].tempId()].set_add_sub(instr.get()); in combine_add_sub_b2i()
2873 new_instr->definitions[0] = instr->definitions[0]; in combine_add_bcnt()
2875 ctx.info[instr->definitions[0].tempId()].label = 0; in combine_add_bcnt()
3171 if (instr->definitions.empty() || ctx.uses[instr->definitions[0].tempId()] != 1 || in apply_omod_clamp()
3183 if (instr->definitions[0].bytes() == 4) in apply_omod_clamp()
3190 ssa_info& def_info = ctx.info[instr->definitions[0].tempId()]; in apply_omod_clamp()
3197 if (!ctx.uses[def_info.instr->definitions[0].tempId()]) in apply_omod_clamp()
3200 if (def_info.instr->definitions[0].bytes() != instr->definitions[0].bytes()) in apply_omod_clamp()
3204 assert(!ctx.info[instr->definitions[0].tempId()].is_mad()); in apply_omod_clamp()
3218 instr->definitions[0].swapTemp(def_info.instr->definitions[0]); in apply_omod_clamp()
3219 ctx.info[instr->definitions[0].tempId()].label &= label_clamp | label_insert | label_f2f16; in apply_omod_clamp()
3220 ctx.uses[def_info.instr->definitions[0].tempId()]--; in apply_omod_clamp()
3231 if (instr->definitions.empty() || ctx.uses[instr->definitions[0].tempId()] != 1) in apply_insert()
3234 ssa_info& def_info = ctx.info[instr->definitions[0].tempId()]; in apply_insert()
3239 if (!ctx.uses[def_info.instr->definitions[0].tempId()]) in apply_insert()
3243 assert(!ctx.info[instr->definitions[0].tempId()].is_mad()); in apply_insert()
3256 instr->definitions[0].swapTemp(def_info.instr->definitions[0]); in apply_insert()
3257 ctx.info[instr->definitions[0].tempId()].label = 0; in apply_insert()
3258 ctx.uses[def_info.instr->definitions[0].tempId()]--; in apply_insert()
3282 unsigned dst_bitsize = extract->definitions[0].bytes() * 8u; in apply_ds_extract()
3308 std::swap(ds->definitions[0], extract->definitions[0]); in apply_ds_extract()
3309 ctx.uses[extract->definitions[0].tempId()] = 0; in apply_ds_extract()
3310 ctx.info[ds->definitions[0].tempId()].label = 0; in apply_ds_extract()
3347 new_instr->definitions[0] = instr->definitions[0]; in combine_and_subbrev()
3349 ctx.info[instr->definitions[0].tempId()].label = 0; in combine_and_subbrev()
3413 new_instr->definitions[0] = instr->definitions[0]; in combine_add_lshl()
3415 ctx.info[instr->definitions[0].tempId()].label = 0; in combine_add_lshl()
3461 instr->definitions[0].swapTemp(candidate->definitions[0]); in combine_vop3p()
3462 ctx.info[candidate->definitions[0].tempId()].instr = candidate; in combine_vop3p()
3463 ctx.uses[instr->definitions[0].tempId()]--; in combine_vop3p()
3508 if (--ctx.uses[fneg->definitions[0].tempId()]) in combine_vop3p()
3516 if (fadd && instr->definitions[0].isPrecise()) in combine_vop3p()
3531 info.instr->definitions[0].isPrecise()) in combine_vop3p()
3558 ctx.uses[mul_instr->definitions[0].tempId()]--; in combine_vop3p()
3559 if (ctx.uses[mul_instr->definitions[0].tempId()]) { in combine_vop3p()
3588 fma->definitions[0] = instr->definitions[0]; in combine_vop3p()
3590 ctx.info[instr->definitions[0].tempId()].set_vop3p(instr.get()); in combine_vop3p()
3617 instr->definitions[0].isPrecise()) in can_use_mad_mix()
3656 vop3p->definitions[0] = instr->definitions[0]; in to_mad_mix()
3660 ctx.info[instr->definitions[0].tempId()].label &= label_f2f16 | label_clamp | label_mul; in to_mad_mix()
3661 if (ctx.info[instr->definitions[0].tempId()].label & label_mul) in to_mad_mix()
3662 ctx.info[instr->definitions[0].tempId()].instr = instr.get(); in to_mad_mix()
3668 ssa_info& def_info = ctx.info[instr->definitions[0].tempId()]; in combine_output_conversion()
3673 if (!can_use_mad_mix(ctx, instr) || ctx.uses[instr->definitions[0].tempId()] != 1) in combine_output_conversion()
3676 if (!ctx.uses[conv->definitions[0].tempId()]) in combine_output_conversion()
3686 instr->definitions[0].swapTemp(conv->definitions[0]); in combine_output_conversion()
3687 if (conv->definitions[0].isPrecise()) in combine_output_conversion()
3688 instr->definitions[0].setPrecise(true); in combine_output_conversion()
3689 ctx.info[instr->definitions[0].tempId()].label &= label_clamp; in combine_output_conversion()
3690 ctx.uses[conv->definitions[0].tempId()]--; in combine_output_conversion()
3740 if (conv->definitions[0].isPrecise()) in combine_mad_mix()
3741 instr->definitions[0].setPrecise(true); in combine_mad_mix()
3787 if (instr->definitions.empty() || is_dead(ctx.uses, instr.get())) in combine_instruction()
3856 if ((ctx.info[instr->definitions[0].tempId()].label & (label_neg | label_abs)) && in combine_instruction()
3858 Temp val = ctx.info[instr->definitions[0].tempId()].temp; in combine_instruction()
3874 if (mul_instr->definitions[0].bytes() != instr->definitions[0].bytes()) in combine_instruction()
3878 ctx.uses[mul_instr->definitions[0].tempId()]--; in combine_instruction()
3879 Definition def = instr->definitions[0]; in combine_instruction()
3880 bool is_neg = ctx.info[instr->definitions[0].tempId()].is_neg(); in combine_instruction()
3881 bool is_abs = ctx.info[instr->definitions[0].tempId()].is_abs(); in combine_instruction()
3886 instr->definitions[0] = def; in combine_instruction()
3903 ctx.info[instr->definitions[0].tempId()].set_mul(instr.get()); in combine_instruction()
3940 if (is_add_mix && info.instr->definitions[0].bytes() == 2) in combine_instruction()
3943 if (get_operand_size(instr, i) != info.instr->definitions[0].bytes() * 8) in combine_instruction()
3963 (!(info.instr->definitions[0].isPrecise() || instr->definitions[0].isPrecise()) || in combine_instruction()
3980 unsigned cur_idx = mul_instr->definitions[0].tempId(); in combine_instruction()
3981 unsigned new_idx = info.instr->definitions[0].tempId(); in combine_instruction()
3996 ctx.uses[mul_instr->definitions[0].tempId()]--; in combine_instruction()
3997 if (ctx.uses[mul_instr->definitions[0].tempId()]) { in combine_instruction()
4070 aco_opcode mad_op = add_instr->definitions[0].bytes() == 2 ? aco_opcode::v_fma_mixlo_f16 in combine_instruction()
4110 instr->definitions[0] = add_instr->definitions[0]; in combine_instruction()
4113 ctx.mad_infos.emplace_back(std::move(add_instr), mul_instr->definitions[0].tempId()); in combine_instruction()
4114 ctx.info[instr->definitions[0].tempId()].set_mad(instr.get(), ctx.mad_infos.size() - 1); in combine_instruction()
4135 new_instr->definitions[0] = instr->definitions[0]; in combine_instruction()
4137 ctx.info[instr->definitions[0].tempId()].label = 0; in combine_instruction()
4183 bool carry_out = ctx.uses[instr->definitions[1].tempId()] > 0; in combine_instruction()
4193 instr->opcode != aco_opcode::v_sub_u32 && ctx.uses[instr->definitions[1].tempId()] > 0; in combine_instruction()
4224 ctx.info[instr->definitions[0].tempId()].set_mad(instr.get(), ctx.mad_infos.size() - 1); in combine_instruction()
4279 assert(pred_instr->definitions.size() >= 2); in to_uniform_bool_instr()
4280 assert(pred_instr->definitions[1].isFixed() && in to_uniform_bool_instr()
4281 pred_instr->definitions[1].physReg() == scc); in to_uniform_bool_instr()
4282 op.setTemp(pred_instr->definitions[1].getTemp()); in to_uniform_bool_instr()
4290 instr->definitions[0].setTemp(Temp(instr->definitions[0].tempId(), s1)); in to_uniform_bool_instr()
4311 for (unsigned i = 0, offset = 0; i < instr->definitions.size(); in select_instruction()
4312 offset += instr->definitions[i++].bytes()) { in select_instruction()
4313 if (ctx.uses[instr->definitions[i].tempId()]) { in select_instruction()
4333 if (off != instr->operands[0].bytes() && op.bytes() == instr->definitions[idx].bytes()) { in select_instruction()
4345 extract->definitions[0] = instr->definitions[idx]; in select_instruction()
4353 instr->operands[0].bytes() % instr->definitions[idx].bytes() == 0 && in select_instruction()
4354 split_offset % instr->definitions[idx].bytes() == 0) { in select_instruction()
4359 Operand::c32((uint32_t)split_offset / instr->definitions[idx].bytes()); in select_instruction()
4360 extract->definitions[0] = instr->definitions[idx]; in select_instruction()
4366 if (!instr->definitions.empty() && ctx.info[instr->definitions[0].tempId()].is_mad()) { in select_instruction()
4367 mad_info = &ctx.mad_infos[ctx.info[instr->definitions[0].tempId()].instr->pass_flags]; in select_instruction()
4463 ctx.info[instr->definitions[0].tempId()].is_scc_needed()) { in select_instruction()
4468 instr->definitions[0].setFixed(scc); in select_instruction()
4476 if (instr->definitions.size() && ctx.uses[instr->definitions[0].tempId()] == 0 && in select_instruction()
4477 ctx.info[instr->definitions[0].tempId()].is_uniform_bitwise()) { in select_instruction()
4480 if (transform_done && !ctx.info[instr->definitions[1].tempId()].is_scc_needed()) { in select_instruction()
4483 uint32_t def0_id = instr->definitions[0].getTemp().id(); in select_instruction()
4484 uint32_t def1_id = instr->definitions[1].getTemp().id(); in select_instruction()
4485 instr->definitions[0].setTemp(Temp(def1_id, s1)); in select_instruction()
4486 instr->definitions[1].setTemp(Temp(def0_id, s1)); in select_instruction()
4526 if (--ctx.uses[info.instr->definitions[0].tempId()]) in select_instruction()
4726 if (!instr->definitions.empty() && ctx.info[instr->definitions[0].tempId()].is_mad()) { in apply_literals()
4727 mad_info* info = &ctx.mad_infos[ctx.info[instr->definitions[0].tempId()].instr->pass_flags]; in apply_literals()
4755 new_mad->definitions[0] = instr->definitions[0]; in apply_literals()
4780 if (instr->opcode == aco_opcode::s_add_u32 && ctx.uses[instr->definitions[1].tempId()] == 0 && in apply_literals()