start register allocator again, fix typo
[libfirm] / ir / be / mips / mips_new_nodes.c
index 4fb5105..8522ed1 100644 (file)
@@ -128,7 +128,7 @@ static void dump_reg_req(FILE *F, ir_node *n, const mips_register_req_t **reqs,
  * @param reason   indicates which kind of information should be dumped
  * @return 0 on success or != 0 on failure
  */
-static int dump_node_mips(ir_node *n, FILE *F, dump_reason_t reason) {
+static int mips_dump_node(ir_node *n, FILE *F, dump_reason_t reason) {
        ir_mode     *mode = NULL;
        int          bad  = 0;
        int          i;
@@ -387,7 +387,9 @@ int get_mips_n_res(const ir_node *node) {
  * Initializes the nodes attributes.
  */
 void init_mips_attributes(ir_node *node, arch_irn_flags_t flags, const mips_register_req_t **in_reqs,
-                                                  const mips_register_req_t **out_reqs, int n_res)
+                                                  const mips_register_req_t **out_reqs,
+                                                                                                 const be_execution_unit_t ***execution_units,
+                                                                                                 int n_res, unsigned latency)
 {
        mips_attr_t *attr = get_mips_attr(node);
 
@@ -395,12 +397,9 @@ void init_mips_attributes(ir_node *node, arch_irn_flags_t flags, const mips_regi
        attr->out_req = out_reqs;
 
        attr->n_res = n_res;
-       if(n_res) {
-               attr->slots = xcalloc(n_res, sizeof(attr->slots[0]));
-       } else {
-               attr->slots = NULL;
-       }
        attr->in_req = in_reqs;
+
+       memset((void *)attr->slots, 0, n_res * sizeof(attr->slots[0]));
 }
 
 /************************************************************************