aco: change return type of create_instruction() to Instruction*

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28370>
This commit is contained in:
Daniel Schürmann
2024-03-25 12:05:50 +01:00
committed by Marge Bot
parent cd62f97719
commit 9b0ebcc39b
17 changed files with 298 additions and 297 deletions
+2 -3
View File
@@ -686,9 +686,8 @@ create_vopd_instruction(const SchedILPContext& ctx, unsigned idx)
get_vopd_opcode_operands(x, x_info, swap_x, &x_op, &num_operands, operands);
get_vopd_opcode_operands(y, y_info, swap_y, &y_op, &num_operands, operands + num_operands);
VOPD_instruction* instr =
create_instruction<VOPD_instruction>(x_op, Format::VOPD, num_operands, 2);
instr->opy = y_op;
Instruction* instr = create_instruction<VOPD_instruction>(x_op, Format::VOPD, num_operands, 2);
instr->vopd().opy = y_op;
instr->definitions[0] = x->definitions[0];
instr->definitions[1] = y->definitions[0];
std::copy(operands, operands + num_operands, instr->operands.begin());