}
}
-static const arch_register_t *TEMPLATE_get_irn_reg(const void *self, const ir_node *irn) {
+static
+const arch_register_t *TEMPLATE_get_irn_reg(const void *self,
+ const ir_node *irn) {
int pos = 0;
const arch_register_t *reg = NULL;
}
if (is_TEMPLATE_irn(irn)) {
- const arch_register_t **slots;
- slots = get_TEMPLATE_slots(irn);
+ const arch_register_t * const *slots;
+ slots = get_TEMPLATE_slots_const(irn);
reg = slots[pos];
}
else {
&TEMPLATE_general_purpose_regs[REG_BP], /* base pointer register */
-1, /* stack direction */
NULL, /* main environment */
+ 7, /* costs for a spill instruction */
+ 5, /* costs for a reload instruction */
},
{ NULL, }, /* emitter environment */
};