summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bespillutil.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-10-16 14:40:33 +0200
committerMatthias Braun <matze@braunis.de>2014-10-18 20:42:46 +0200
commitaaf6b0b025f369da68e8fcee3a9549d608cd8e81 (patch)
tree202266d2a3d22769aabdae9327d1cb872a564432 /ir/be/bespillutil.h
parent80ddc037b1a43a5f4accb14e36b955e67034a46c (diff)
merge assure_constraints() and be_add_missing_copies() into be_spill_prepare_for_constraints()
Diffstat (limited to 'ir/be/bespillutil.h')
-rw-r--r--ir/be/bespillutil.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ir/be/bespillutil.h b/ir/be/bespillutil.h
index 2cdfce5..12da7a6 100644
--- a/ir/be/bespillutil.h
+++ b/ir/be/bespillutil.h
@@ -147,4 +147,12 @@ ir_node *be_new_spill(ir_node *value, ir_node *after);
*/
ir_node *be_new_reload(ir_node *value, ir_node *spilled, ir_node *before);
+/**
+ * Prepare graph for spilling: This adds explicit copies where this is
+ * unavoidable because of register constraints. This also makes the real
+ * register pressure explicit which is necessary for correct spilling.
+ * @param irg The graph
+ */
+void be_spill_prepare_for_constraints(ir_graph *irg);
+
#endif