becopyilp: Do not advertise the switch to dump the solution, because this is not...
[libfirm] / ir / be / TEMPLATE / TEMPLATE_new_nodes.c
index e706d97..21b78ac 100644 (file)
@@ -1,20 +1,6 @@
 /*
- * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
- *
  * This file is part of libFirm.
- *
- * This file may be distributed and/or modified under the terms of the
- * GNU General Public License version 2 as published by the Free Software
- * Foundation and appearing in the file LICENSE.GPL included in the
- * packaging of this file.
- *
- * Licensees holding valid libFirm Professional Edition licenses may use
- * this file in accordance with the libFirm Commercial License.
- * Agreement provided with the Software.
- *
- * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
- * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE.
+ * Copyright (C) 2012 University of Karlsruhe.
  */
 
 /**
@@ -22,7 +8,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"
 
@@ -50,7 +35,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 +84,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_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)