summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beutil.h
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2014-12-25 17:02:14 +0100
committerChristoph Mallon <mallon@cs.uni-saarland.de>2014-12-26 22:20:54 +0100
commit90c9c9628c3dcaae9abfafbacf43416b455616da (patch)
tree54686fd261b17599bf8454ef71e450b73989294e /ir/be/beutil.h
parent509c01cb352dbbfe3b46e5f154c16395b023f6d3 (diff)
be: Add and use be_keep_unused().
Diffstat (limited to 'ir/be/beutil.h')
-rw-r--r--ir/be/beutil.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ir/be/beutil.h b/ir/be/beutil.h
index 73bd814..535268f 100644
--- a/ir/be/beutil.h
+++ b/ir/be/beutil.h
@@ -45,4 +45,11 @@ ir_node *insert_Perm_before(ir_graph *irg, const arch_register_class_t *cls,
*/
void be_remove_dead_nodes_from_schedule(ir_graph *irg);
+/**
+ * Keep the given node alive, if it has no users, by adding a be_Keep.
+ *
+ * @param node The node to kept alive.
+ */
+void be_keep_if_unused(ir_node *node);
+
#endif