X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbespill.h;h=79c82cec3fe791972e2c781e23cee39f0a317596;hb=d0331faf03740c021da65c7e07e3bf11fa2dabbd;hp=cc7bf9d3428dd21a2ff248557df06bd056125917;hpb=47401b7fdcf1da13f4d3833ef6e00d96d11abff6;p=libfirm diff --git a/ir/be/bespill.h b/ir/be/bespill.h index cc7bf9d34..79c82cec3 100644 --- a/ir/be/bespill.h +++ b/ir/be/bespill.h @@ -27,13 +27,6 @@ typedef struct _spill_env_t spill_env_t; */ spill_env_t *be_new_spill_env(const be_chordal_env_t *chordal); -/** - * Marks a phi-node for spilling. So when reloading from this phi-node, not - * only its value but the whole phi will be spilled. - * This might place be_Copy nodes in predecessor blocks. - */ -void be_spill_phi(spill_env_t *env, ir_node *node); - /** * Deletes a spill environment. */ @@ -45,6 +38,20 @@ void be_add_reload_on_edge(spill_env_t *senv, ir_node *to_spill, ir_node *bl, in void be_insert_spills_reloads(spill_env_t *senv); +/** + * Marks a phi-node for spilling. So when reloading from this phi-node, not + * only its value but the whole phi will be spilled. + * This might place be_Copy nodes in predecessor blocks. + */ +void be_spill_phi(spill_env_t *env, ir_node *node); + +/** + * Places the necessary copies for the spilled phis in the graph + * This has to be done once before be_insert_spill_reloads, after + * all phis to spill have been marked with be_spill_phi. + */ +void be_place_copies(spill_env_t *env); + /** * Computes the spill offsets for all spill nodes in the irg */