X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbespill.h;h=d651de5a652b9353494057af72a24e062302b00b;hb=b5015a463c26d80d50e93cbf6e3edc1ecfac2cfc;hp=7a7702620d01e5cb089b65b6e3a6d521452905fa;hpb=6165d2a9406fcc89959cc52a312eaff7bfd99c1b;p=libfirm diff --git a/ir/be/bespill.h b/ir/be/bespill.h index 7a7702620..d651de5a6 100644 --- a/ir/be/bespill.h +++ b/ir/be/bespill.h @@ -1,5 +1,5 @@ /** - * Author: Daniel Grund + * Author: Daniel Grund, Sebastian Hack * Date: 29.09.2005 * Copyright: (c) Universitaet Karlsruhe * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. @@ -10,21 +10,30 @@ #include "set.h" #include "pset.h" +#include "irnode.h" +#include "debug.h" +#include "bechordal.h" #include "be_t.h" -#include "irnode.h" -typedef struct _spill_env_t { - const be_main_session_env_t *session; - set *spill_ctxs; - pset *mem_phis; /**< all phis which must be converted to memory phis */ -} spill_env_t; +#include "bearch.h" + +typedef struct _spill_env_t spill_env_t; +typedef int(*decide_irn_t)(const ir_node*, void*); + + +spill_env_t *be_new_spill_env( + firm_dbg_module_t *dbg, + const be_chordal_env_t *chordal, + decide_irn_t is_mem_phi, + void *data); -int be_set_cmp_spillctx(const void *a, const void *b, size_t n); +void be_delete_spill_env(spill_env_t *senv); -ir_node *be_spill_node(spill_env_t *senv, ir_node *to_spill); +void be_add_reload(spill_env_t *senv, ir_node *to_spill, ir_node *before); -void be_remove_spilled_phis(spill_env_t *senv); +void be_add_reload_on_edge(spill_env_t *senv, ir_node *to_spill, ir_node *bl, int pos); +void be_insert_spills_reloads(spill_env_t *senv, pset *reload_set); #endif /*BESPILL_H_*/