X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2FTEMPLATE%2FTEMPLATE_new_nodes.c;h=f16078259ca4006ac55f69b3479e816137e0501c;hb=fef8dc3eff6468d7d65485af8e1ac9884c504e1a;hp=f3f29ac48e64b51d6e3c90a17a5c99322539c895;hpb=1a3b7d363474ab544c13093a2f0b578718d37c7a;p=libfirm diff --git a/ir/be/TEMPLATE/TEMPLATE_new_nodes.c b/ir/be/TEMPLATE/TEMPLATE_new_nodes.c index f3f29ac48..f16078259 100644 --- a/ir/be/TEMPLATE/TEMPLATE_new_nodes.c +++ b/ir/be/TEMPLATE/TEMPLATE_new_nodes.c @@ -22,7 +22,6 @@ * @brief This file implements the creation of the achitecture specific firm * opcodes and the coresponding node constructors for the TEMPLATE * assembler irg. - * @version $Id$ */ #include "config.h" @@ -38,7 +37,7 @@ #include "irprintf.h" #include "xmalloc.h" -#include "../bearch.h" +#include "bearch.h" #include "TEMPLATE_nodes_attr.h" #include "TEMPLATE_new_nodes.h" @@ -50,7 +49,7 @@ * @param n the node to dump * @param reason indicates which kind of information should be dumped */ -static void TEMPLATE_dump_node(FILE *F, ir_node *n, dump_reason_t reason) +static void TEMPLATE_dump_node(FILE *F, const ir_node *n, dump_reason_t reason) { ir_mode *mode = NULL; @@ -99,20 +98,17 @@ TEMPLATE_attr_t *get_TEMPLATE_attr(ir_node *node) */ static void init_TEMPLATE_attributes(ir_node *node, arch_irn_flags_t flags, const arch_register_req_t **in_reqs, - const be_execution_unit_t ***execution_units, int n_res) { ir_graph *irg = get_irn_irg(node); struct obstack *obst = get_irg_obstack(irg); backend_info_t *info; - (void) execution_units; - arch_irn_set_flags(node, flags); - arch_set_in_register_reqs(node, in_reqs); + arch_set_irn_flags(node, flags); + arch_set_irn_register_reqs_in(node, in_reqs); info = be_get_info(node); - info->out_infos = NEW_ARR_D(reg_out_info_t, obst, n_res); - memset(info->out_infos, 0, n_res * sizeof(info->out_infos[0])); + info->out_infos = NEW_ARR_DZ(reg_out_info_t, obst, n_res); } static void set_TEMPLATE_value(ir_node *node, ir_tarval *value)