summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beutil.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2009-09-04 15:19:44 +0200
committerMatthias Braun <matze@braunis.de>2009-09-04 15:19:44 +0200
commit3910c38cb1f9dc1ec8792cd2b9234c802ab5ff9c (patch)
treee713213243ba6db761547cfe3af80ab93edfdd9f /ir/be/beutil.h
parent37a5b71805c64d63532e1dc10e37bfe516dbdc42 (diff)
new heursitic for good coloring order; add utility function to generate a postorder
[r26488]
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 0bf0a1f..f40820f 100644
--- a/ir/be/beutil.h
+++ b/ir/be/beutil.h
@@ -151,6 +151,13 @@ unsigned get_num_reachable_nodes(ir_graph *irg);
ir_node *be_get_Proj_for_pn(const ir_node *irn, long pn);
/**
+ * Returns an array (an ARR_F) of the programs blocks in reverse postorder
+ * (note: caller has to free the memory with DEL_ARR_F after use;
+ * of course you can use ARR_LEN on the array too.)
+ */
+ir_node **be_get_cfgpostorder(ir_graph *irg);
+
+/**
* Opens a file named base.ext with the mode mode.
*/
FILE *be_ffopen(const char *base, const char *ext, const char *mode);