Lines Matching refs:isTemp
625 if (instr->definitions[i].isTemp()) { in to_VOP3()
640 return op.isTemp() && op.getTemp().type() == RegType::vgpr; in is_operand_vgpr()
750 if (!op.isTemp()) in parse_base_offset()
792 } else if (add_instr->operands[i].isTemp() && in parse_base_offset()
798 if (!add_instr->operands[!i].isTemp()) in parse_base_offset()
824 if (!op.isTemp() || !ctx.info[op.tempId()].is_bitwise()) in skip_smem_offset_align()
847 if (!instr->operands.empty() && instr->operands[1].isTemp()) { in smem_combine()
925 assert(instr->operands[i].isTemp()); in propagate_constants_vop3p()
1166 if (!op.isTemp()) in check_sdwa_extract()
1220 if (!(instr->operands[0].isTemp() && instr->operands[1].isTemp())) in can_eliminate_and_exec()
1239 if ((op.isTemp() && ctx.info[op.tempId()].is_canonicalized()) || in is_op_canonicalized()
1243 if (op.isConstant() || (op.isTemp() && ctx.info[op.tempId()].is_constant_or_literal(32))) { in is_op_canonicalized()
1244 uint32_t val = op.isTemp() ? ctx.info[op.tempId()].val : op.constantValue(); in is_op_canonicalized()
1274 all_const && (!op.isTemp() || ctx.info[op.tempId()].is_constant_or_literal(32)); in label_instruction()
1288 if (!instr->operands[i].isTemp()) in label_instruction()
1561 bool copy_prop = instr->operands.size() == 1 && instr->operands[0].isTemp() && in label_instruction()
1575 if (aligned && op.isTemp() && ctx.info[op.tempId()].is_vec()) { in label_instruction()
1591 if (ops[i].isTemp() && ctx.info[ops[i].tempId()].is_temp() && in label_instruction()
1606 if (instr->operands[1].isTemp() && ctx.info[instr->operands[1].tempId()].is_split()) { in label_instruction()
1608 if (instr->operands[0].isTemp() && in label_instruction()
1627 if (instr->definitions.size() == 2 && instr->operands[0].isTemp() && in label_instruction()
1659 assert(vec_op.isTemp()); in label_instruction()
1711 if (instr->operands[0].isTemp() && ctx.info[instr->operands[0].tempId()].is_vec() && in label_instruction()
1725 if (op.isTemp() && ctx.info[op.tempId()].is_temp() && in label_instruction()
1741 } else if (instr->operands[0].isTemp()) { in label_instruction()
1773 if (instr->operands[!i].isConstant() && instr->operands[i].isTemp()) { in label_instruction()
1842 if (found_zero && found_one && instr->operands[idx].isTemp()) in label_instruction()
1858 instr->operands[0].constantEquals(0) && instr->operands[1].isTemp() && in label_instruction()
1865 bool all_same_temp = instr->operands[0].isTemp(); in label_instruction()
1870 if (!instr->operands[i].isTemp() || in label_instruction()
1919 if (fixed_to_exec(instr->operands[1]) && instr->operands[0].isTemp()) { in label_instruction()
1956 return op.isTemp() && (ctx.info[op.tempId()].is_uniform_bool() || in label_instruction()
1995 if (instr->operands[2].isTemp() && ctx.info[instr->operands[2].tempId()].is_scc_invert()) { in label_instruction()
2002 if (instr->operands[0].isTemp() && ctx.info[instr->operands[0].tempId()].is_scc_invert()) { in label_instruction()
2038 if (instr->operands[0].isTemp()) in label_instruction()
2043 if (instr->operands[0].isTemp()) in label_instruction()
2070 if (op.isTemp()) in decrease_uses()
2079 if (!op.isTemp() || !(ctx.info[op.tempId()].label & instr_usedef_labels)) 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()
2102 if (instr->definitions[1].isTemp() && ctx.uses[instr->definitions[1].tempId()]) in combine_ordering_test()
2126 if (!op_instr[i]->operands[0].isTemp() || !op_instr[i]->operands[1].isTemp()) in combine_ordering_test()
2199 if (instr->definitions[1].isTemp() && ctx.uses[instr->definitions[1].tempId()]) in combine_comparison_ordering()
2220 if (!nan_test->operands[0].isTemp() || !nan_test->operands[1].isTemp()) in combine_comparison_ordering()
2222 if (!cmp->operands[0].isTemp() || !cmp->operands[1].isTemp()) in combine_comparison_ordering()
2272 } else if (op.isTemp()) { in is_operand_constant()
2300 if (instr->definitions[1].isTemp() && ctx.uses[instr->definitions[1].tempId()]) in combine_constant_comparison_ordering()
2323 if (!nan_test->operands[0].isTemp() || !nan_test->operands[1].isTemp()) in combine_constant_comparison_ordering()
2325 if (!cmp->operands[0].isTemp() && !cmp->operands[1].isTemp()) in combine_constant_comparison_ordering()
2342 if (cmp->operands[i].isTemp() && in combine_constant_comparison_ordering()
2357 if (cmp->operands[0].isTemp()) in combine_constant_comparison_ordering()
2359 if (cmp->operands[1].isTemp()) in combine_constant_comparison_ordering()
2408 if (cmp->operands[0].isTemp()) in combine_inverse_comparison()
2410 if (cmp->operands[1].isTemp()) in combine_inverse_comparison()
2695 if (!instr->operands[0].isTemp()) in combine_salu_not_bitwise()
2697 if (instr->definitions[1].isTemp() && ctx.uses[instr->definitions[1].tempId()]) in combine_salu_not_bitwise()
2739 if (instr->definitions[0].isTemp() && ctx.info[instr->definitions[0].tempId()].is_uniform_bool()) in combine_salu_n2()
2818 if (instr->operands[i].isTemp() && ctx.info[instr->operands[i].tempId()].is_b2i() && in combine_add_sub_b2i()
2822 if (instr->operands[!i].isTemp() && in combine_add_sub_b2i()
2865 !op_instr->usesModifiers() && op_instr->operands[0].isTemp() && in combine_add_bcnt()
2962 } else if (operands[i].isTemp() && in combine_clamp()
3062 if (!instr->operands[i].isTemp()) in apply_sgprs()
3328 if (instr->operands[!i].isTemp() && in combine_and_subbrev()
3453 vop3p->clamp && instr->operands[0].isTemp() && ctx.uses[instr->operands[0].tempId()] == 1 && in combine_vop3p()
3472 if (!op.isTemp()) in combine_vop3p()
3526 if (!instr->operands[i].isTemp() || !ctx.info[instr->operands[i].tempId()].is_vop3p()) in combine_vop3p()
3560 if (op[0].isTemp()) in combine_vop3p()
3562 if (op[1].isTemp()) in combine_vop3p()
3702 if (!instr->operands[i].isTemp()) in combine_mad_mix()
3761 if (op.isTemp() && ctx.info[op.tempId()].is_constant_or_literal(op.bytes() * 8)) in is_pow_of_two()
3795 if (!op.isTemp()) in combine_instruction()
3927 if (!instr->operands[i].isTemp() || !ctx.info[instr->operands[i].tempId()].is_mul()) in combine_instruction()
3998 if (op[0].isTemp()) in combine_instruction()
4000 if (op[1].isTemp()) in combine_instruction()
4124 if (instr->operands[i].isTemp() && ctx.info[instr->operands[i].tempId()].is_b2f() && in combine_instruction()
4125 ctx.uses[instr->operands[i].tempId()] == 1 && instr->operands[!i].isTemp() && in combine_instruction()
4248 if (!op.isTemp()) in to_uniform_bool_instr()
4336 if (vec_op.isTemp()) in select_instruction()
4339 if (op.isTemp()) in select_instruction()
4371 if (instr->operands[0].isTemp()) in select_instruction()
4373 if (instr->operands[1].isTemp()) in select_instruction()
4397 if (instr->operands[2].isTemp() && in select_instruction()
4402 if (!instr->operands[i].isTemp()) in select_instruction()
4418 if (instr->operands[2].isTemp() && instr->operands[2].getTemp().type() == RegType::vgpr) { in select_instruction()
4420 if (!instr->operands[i].isTemp()) in select_instruction()
4424 if (ctx.program->gfx_level < GFX10 && instr->operands[!i].isTemp() && in select_instruction()
4454 if (instr->isBranch() && instr->operands.size() && instr->operands[0].isTemp() && in select_instruction()
4460 instr->operands[2].isTemp()) { in select_instruction()
4462 } else if (instr->opcode == aco_opcode::p_wqm && instr->operands[0].isTemp() && in select_instruction()
4495 if (!instr->operands[i].isTemp()) in select_instruction()
4561 if (instr->isVALU() && op.isTemp() && op.getTemp().type() == RegType::sgpr && in select_instruction()
4568 } else if (!op.isTemp() || !ctx.info[op.tempId()].is_literal(bits)) { in select_instruction()
4605 if (instr->operands[i].isTemp() && instr->operands[i].tempId() == literal_id) in select_instruction()
4746 if (!new_mad->operands[1].isTemp() || in apply_literals()
4766 if (op.isTemp() && ctx.info[op.tempId()].is_literal(bits) && ctx.uses[op.tempId()] == 0) { in apply_literals()