From 99680cd0041c948a41252bae899055bac8d86279 Mon Sep 17 00:00:00 2001 From: Adam Szalkowski Date: Thu, 20 Oct 2005 13:21:16 +0000 Subject: [PATCH] Adapted to API changes of new_ir_op --- ir/be/bearch_firm.c | 4 ++-- ir/be/benode.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ir/be/bearch_firm.c b/ir/be/bearch_firm.c index 94bbe1811..ef5cbfcaa 100644 --- a/ir/be/bearch_firm.c +++ b/ir/be/bearch_firm.c @@ -86,7 +86,7 @@ static void firm_init(void) int push_opc = get_next_ir_opcode(); op_push = new_ir_op(push_opc, "Push", - op_pin_state_pinned, 0, oparity_binary, 0, 0); + op_pin_state_pinned, 0, oparity_binary, 0, 0, NULL); sig = rflct_signature_allocate(1, 3); rflct_signature_set_arg(sig, 0, 0, "Store", RFLCT_MC(Mem), 0, 0); @@ -103,7 +103,7 @@ static void firm_init(void) int imm_opc = get_next_ir_opcode(); op_imm = new_ir_op(imm_opc, "Imm", - op_pin_state_pinned, 0, oparity_zero, 0, sizeof(imm_attr_t)); + op_pin_state_pinned, 0, oparity_zero, 0, sizeof(imm_attr_t), NULL); sig = rflct_signature_allocate(1, 1); rflct_signature_set_arg(sig, 0, 0, "Imm", RFLCT_MC(Data), 0, 0); diff --git a/ir/be/benode.c b/ir/be/benode.c index 714bb1746..928552521 100644 --- a/ir/be/benode.c +++ b/ir/be/benode.c @@ -369,7 +369,7 @@ be_node_factory_t *be_node_factory_init(be_node_factory_t *factory, ent = get_op(factory, cls, node_kind_spill); snprintf(buf, sizeof(buf), "Spill_%s", cls->name); ent->op = new_ir_op(get_next_ir_opcode(), buf, op_pin_state_pinned, - 0, oparity_unary, 0, 0); + 0, oparity_unary, 0, 0, NULL); ent->n_pos = ARRSIZE(templ_pos_Spill); ent->pos = templ_pos_Spill; pmap_insert(factory->irn_op_map, ent->op, ent); @@ -377,7 +377,7 @@ be_node_factory_t *be_node_factory_init(be_node_factory_t *factory, ent = get_op(factory, cls, node_kind_reload); snprintf(buf, sizeof(buf), "Reload_%s", cls->name); ent->op = new_ir_op(get_next_ir_opcode(), buf, op_pin_state_pinned, 0, - oparity_unary, 0, sizeof(const arch_register_t *)); + oparity_unary, 0, sizeof(const arch_register_t *), NULL); ent->n_pos = ARRSIZE(templ_pos_Reload); ent->pos = templ_pos_Reload; pmap_insert(factory->irn_op_map, ent->op, ent); @@ -385,7 +385,7 @@ be_node_factory_t *be_node_factory_init(be_node_factory_t *factory, ent = get_op(factory, cls, node_kind_copy); snprintf(buf, sizeof(buf), "Copy_%s", cls->name); ent->op = new_ir_op(get_next_ir_opcode(), buf, op_pin_state_pinned, 0, - oparity_unary, 0, sizeof(const arch_register_t *)); + oparity_unary, 0, sizeof(const arch_register_t *), NULL); ent->n_pos = ARRSIZE(templ_pos_Copy); ent->pos = templ_pos_Copy; pmap_insert(factory->irn_op_map, ent->op, ent); @@ -393,7 +393,7 @@ be_node_factory_t *be_node_factory_init(be_node_factory_t *factory, ent = get_op(factory, cls, node_kind_perm); snprintf(buf, sizeof(buf), "Perm_%s", cls->name); ent->op = new_ir_op(get_next_ir_opcode(), buf, op_pin_state_pinned, 0, - oparity_variable, 0, sizeof(const arch_register_t) * cls->n_regs); + oparity_variable, 0, sizeof(const arch_register_t) * cls->n_regs, NULL); ent->n_pos = 2 * cls->n_regs; ent->pos = obstack_alloc(&factory->obst, sizeof(ent->pos[0]) * ent->n_pos); for(j = 0; j < ent->n_pos; j += 2) { -- 2.20.1