-static void TEMPLATE_set_irn_reg(const void *self, ir_node *irn, const arch_register_t *reg)
-{
- int pos = 0;
- (void) self;
-
- if (is_Proj(irn)) {
- pos = TEMPLATE_translate_proj_pos(irn);
- irn = skip_Proj(irn);
- }
-
- if (is_TEMPLATE_irn(irn)) {
- const arch_register_t **slots;
-
- slots = get_TEMPLATE_slots(irn);
- slots[pos] = reg;
- }
- else {
- /* here we set the registers for the Phi nodes */
- TEMPLATE_set_firm_reg(irn, reg, cur_reg_set);
- }
-}
-
-static
-const arch_register_t *TEMPLATE_get_irn_reg(const void *self,
- const ir_node *irn)