implemented a function to retrieve estimated costs of an op
[libfirm] / ir / be / bespill.h
index 92e6a9a..72f1e2c 100644 (file)
@@ -25,10 +25,15 @@ typedef int(*decide_irn_t)(const ir_node*, void*);
  * Creates a new spill environment.
  *
  * @param chordal
- * @param is_mem_phi  a function that evaluates a Phi node
- * @param data        context parameter for the is_mem_phi function
+ * @param is_spilled_phi       a function that evaluates a phi node and returns true if it is a spilled phi node
+ * @param data                         context parameter for the is_spilled_phi function
  */
-spill_env_t *be_new_spill_env(const be_chordal_env_t *chordal, decide_irn_t is_mem_phi, void *data);
+spill_env_t *be_new_spill_env(const be_chordal_env_t *chordal, decide_irn_t is_spilled_phi, void *data);
+
+/**
+ * (re-)sets the is_spilled_phi callback
+ */
+void be_set_is_spilled_phi(spill_env_t *env, decide_irn_t is_spilled_phi, void *data);
 
 /**
  * Deletes a spill environment.
@@ -39,7 +44,7 @@ void be_add_reload(spill_env_t *senv, ir_node *to_spill, ir_node *before);
 
 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);
+void be_insert_spills_reloads(spill_env_t *senv);
 
 /**
  * Computes the spill offsets for all spill nodes in the irg