ctx = be_get_spill_ctx(senv->spill_ctxs, irn, ctx_irn);
if(!ctx->spill) {
const be_main_env_t *env = senv->chordal_env->main_env;
- ctx->spill = be_spill(env->node_factory, env->arch_env, irn, ctx_irn);
+ ctx->spill = be_spill(env->arch_env, irn, ctx_irn);
}
return ctx->spill;
/* the reload */
ir_node *bl = is_Block(rld->reloader) ? rld->reloader : get_nodes_block(rld->reloader);
- ir_node *reload = new_Reload(senv->chordal_env->main_env->node_factory,
- senv->cls, irg, bl, mode, spill);
+ ir_node *reload = be_new_Reload(senv->cls, irg, bl, mode, spill);
DBG((senv->dbg, LEVEL_1, " %+F of %+F before %+F\n", reload, si->spilled_node, rld->reloader));
if(reload_set)
-/*
+/****************************************
- SPILL SLOT MANAGEMENT AND OPTS
+ SPILL SLOT MANAGEMENT AND OPTS
-*/
+****************************************/
typedef struct _spill_slot_t {
unsigned size;
return;
/* check, if this spill is for a context already known */
- ctx = get_Spill_context(spill);
+ ctx = be_get_Spill_context(spill);
entry = pmap_find(ssenv->slots, ctx);
if (!entry) {
if (tgt_slot != i)
pset_insert_ptr(ass[tgt_slot]->members, n1);
- set_Spill_offset(n1, ass[tgt_slot]->offset);
+ be_set_Spill_offset(n1, ass[tgt_slot]->offset);
DBG((ssenv->dbg, LEVEL_1, " Offset %+F %d\n", n1, ass[tgt_slot]->offset));
}
}