summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beutil.h
diff options
context:
space:
mode:
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>2006-06-23 12:37:32 +0200
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>2006-06-23 12:37:32 +0200
commit4402ff71e8a876aa7ef50de56597b0eb7110583d (patch)
tree85a10443adaa2daae332baf534126fc549371db6 /ir/be/beutil.h
parentf7f70d5202205131aa74a227dcc0831a419432e0 (diff)
added function to retrieve number of reachable nodes in an irg
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 ae193f5..cc6e60b 100644
--- a/ir/be/beutil.h
+++ b/ir/be/beutil.h
@@ -118,6 +118,13 @@ void dump_ir_extblock_graph_sched(ir_graph *irg, const char *suffix);
void be_dump(ir_graph *irg, const char *suffix, void (*dumper)(ir_graph *, const char *));
/**
+ * Returns the number of reachable nodes in an irg.
+ * @param irg The irg.
+ * @return The number of reachable nodes.
+ */
+unsigned get_num_reachable_nodes(ir_graph *irg);
+
+/**
* Search for an irn in @p accept.
* The search is started at @p start_point_exclusive and continues upwards the dom-tree
* @return The first node out of accept if found. Else NULL is returned.