*
* Backend node support.
*
- * This file provdies Perm, Copy, Spill and Reload nodes.
+ * This file provides Perm, Copy, Spill and Reload nodes.
*
* Copyright (C) 2005 Universitaet Karlsruhe
* Released under the GPL
typedef struct {
be_node_attr_t node_attr;
int offset; /**< The offset by which the stack shall be increased/decreased. */
- be_stack_dir_t dir; /**< The direction in which the stack shall be modified (along or in the other direction). */
+ be_stack_dir_t dir; /**< The direction in which the stack shall be modified (expand or shrink). */
} be_stack_attr_t;
typedef struct {
ir_node *irn;
ir_node **real_in;
- real_in = malloc(sizeof(real_in[0]) * (real_n));
+ real_in = xmalloc(sizeof(real_in[0]) * (real_n));
real_in[0] = mem;
real_in[1] = sp;
a->ent = ent;
}
-ir_node *be_new_Return(ir_graph *irg, ir_node *bl, int n, ir_node *in[])
+ir_node *be_new_Return(dbg_info *dbg, ir_graph *irg, ir_node *bl, int n, ir_node *in[])
{
- ir_node *irn = new_ir_node(NULL, irg, bl, op_be_Return, mode_X, n, in);
+ ir_node *irn = new_ir_node(dbg, irg, bl, op_be_Return, mode_X, n, in);
init_node_attr(irn, n);
return irn;
in[0] = src;
memcpy(&in[1], in_keep, n * sizeof(in[0]));
irn = new_ir_node(NULL, irg, bl, op_be_CopyKeep, mode, n + 1, in);
- init_node_attr(irn, n);
+ init_node_attr(irn, n + 1);
be_node_set_reg_class(irn, OUT_POS(0), cls);
be_node_set_reg_class(irn, 0, cls);
{
be_stack_attr_t *a = (be_stack_attr_t *) at;
fprintf(f, "offset: %u\n", a->offset);
- fprintf(f, "direction: %s\n", a->dir == be_stack_dir_along ? "along" : "against");
+ fprintf(f, "direction: %s\n", a->dir == be_stack_dir_expand ? "expand" : "shrink");
}
break;
}