Lines Matching defs:op_instr

2110    Instruction* op_instr[2];
2115 op_instr[i] = follow_operand(ctx, instr->operands[i], true);
2116 if (!op_instr[i])
2120 unsigned op_bitsize = get_cmp_bitsize(op_instr[i]->opcode);
2122 if (get_f32_cmp(op_instr[i]->opcode) != expected_cmp)
2126 if (!op_instr[i]->operands[0].isTemp() || !op_instr[i]->operands[1].isTemp())
2129 if (op_instr[i]->isVOP3()) {
2130 VOP3_instruction& vop3 = op_instr[i]->vop3();
2137 } else if (op_instr[i]->isSDWA()) {
2141 Temp op0 = op_instr[i]->operands[0].getTemp();
2142 Temp op1 = op_instr[i]->operands[1].getTemp();
2158 decrease_uses(ctx, op_instr[0]);
2159 decrease_uses(ctx, op_instr[1]);
2863 Instruction* op_instr = follow_operand(ctx, instr->operands[i]);
2864 if (op_instr && op_instr->opcode == aco_opcode::v_bcnt_u32_b32 &&
2865 !op_instr->usesModifiers() && op_instr->operands[0].isTemp() &&
2866 op_instr->operands[0].getTemp().type() == RegType::vgpr &&
2867 op_instr->operands[1].constantEquals(0)) {
2871 new_instr->operands[0] = op_instr->operands[0];
3322 Instruction* op_instr = follow_operand(ctx, instr->operands[i], true);
3323 if (op_instr && op_instr->opcode == aco_opcode::v_subbrev_co_u32 &&
3324 op_instr->operands[0].constantEquals(0) && op_instr->operands[1].constantEquals(0) &&
3325 !op_instr->usesModifiers()) {
3342 ctx.uses[op_instr->operands[2].tempId()]++;
3346 new_instr->operands[2] = Operand(op_instr->operands[2]);
3379 Instruction* op_instr = follow_operand(ctx, instr->operands[i]);
3380 if (!op_instr)
3383 if (op_instr->opcode != aco_opcode::s_lshl_b32 &&
3384 op_instr->opcode != aco_opcode::v_lshlrev_b32)
3387 int shift_op_idx = op_instr->opcode == aco_opcode::s_lshl_b32 ? 1 : 0;
3389 if (op_instr->operands[shift_op_idx].isConstant() &&
3390 ((allow_24bit && op_instr->operands[!shift_op_idx].is24bit()) ||
3391 op_instr->operands[!shift_op_idx].is16bit())) {
3392 uint32_t multiplier = 1 << (op_instr->operands[shift_op_idx].constantValue() % 32u);
3399 op_instr->operands[!shift_op_idx],