summaryrefslogtreecommitdiffhomepage
path: root/ir/be/mips
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2018-05-09 20:08:14 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2018-05-09 20:08:14 +0200
commit720d6194c99202777977da756fac97c31b5ad887 (patch)
treec32f4a852bc469cf5d91f35a1c933fe6c21b4573 /ir/be/mips
parent70a481eeb92b5af6a11bed0e74a849bad3d687fb (diff)
be: Factor out code to add an input to an asm node.
Diffstat (limited to 'ir/be/mips')
-rw-r--r--ir/be/mips/mips_transform.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ir/be/mips/mips_transform.c b/ir/be/mips/mips_transform.c
index 79f1593..1d3a22d 100644
--- a/ir/be/mips/mips_transform.c
+++ b/ir/be/mips/mips_transform.c
@@ -301,9 +301,7 @@ static ir_node *gen_ASM(ir_node *const node)
req = arch_get_irn_register_req(new_pred)->cls->class_req;
}
- be_set_asm_operand(&operand->op, kind, ARR_LEN(info.ins));
- ARR_APP1(ir_node*, info.ins, new_pred);
- ARR_APP1(arch_register_req_t const*, info.in_reqs, req);
+ be_asm_add_in(&info, &operand->op, kind, new_pred, req);
}
return be_make_asm(node, &info, operands);