Added support for out edges.
[libfirm] / ir / stat / stat_dmp.c
index b475a8d..305dfcf 100644 (file)
@@ -87,7 +87,7 @@ static void simple_dump_opt_hash(dumper_t *dmp, pset *set, int index)
 }
 
 /**
- * dumps the endges count
+ * dumps the edges count
  */
 static void simple_dump_edges(dumper_t *dmp, counter_t *cnt)
 {
@@ -116,22 +116,24 @@ static void simple_dump_graph(dumper_t *dmp, graph_entry_t *entry)
     }
 
     fprintf(dmp->f, " %swalked %u over blocks %u:\n"
-                    " was inlined   : %u\n"
-                   " got inlined   : %u\n"
-                   " strength red  : %u\n"
-                   " leaf function : %s\n"
-                   " recursive     : %s\n"
-                   " chain call    : %s\n"
-                    " calls         : %u\n"
-                    " indirect calls: %u\n",
+                    " was inlined               : %u\n"
+                   " got inlined               : %u\n"
+                   " strength red              : %u\n"
+                   " leaf function             : %s\n"
+                   " calls only leaf functions : %s\n"
+                   " recursive                 : %s\n"
+                   " chain call                : %s\n"
+                    " calls                     : %u\n"
+                    " indirect calls            : %u\n",
         entry->is_deleted ? "DELETED " : "",
         entry->cnt_walked.cnt[0], entry->cnt_walked_blocks.cnt[0],
         entry->cnt_was_inlined.cnt[0],
         entry->cnt_got_inlined.cnt[0],
-       entry->cnt_strength_red.cnt[0],
-       entry->is_leaf ? "YES" : "NO",
-       entry->is_recursive ? "YES" : "NO",
-       entry->is_chain_call ? "YES" : "NO",
+           entry->cnt_strength_red.cnt[0],
+           entry->is_leaf ? "YES" : "NO",
+           entry->is_leaf_call == LCS_NON_LEAF_CALL ? "NO" : (entry->is_leaf_call == LCS_LEAF_CALL ? "Yes" : "Maybe"),
+           entry->is_recursive ? "YES" : "NO",
+           entry->is_chain_call ? "YES" : "NO",
         entry->cnt_all_calls.cnt[0],
         entry->cnt_indirect_calls.cnt[0]
     );
@@ -171,7 +173,7 @@ static void simple_dump_graph(dumper_t *dmp, graph_entry_t *entry)
 }
 
 /**
- * initialise the simple dumper
+ * initialize the simple dumper
  */
 static void simple_init(dumper_t *dmp, const char *name)
 {
@@ -277,7 +279,7 @@ static void csv_dump_graph(dumper_t *dmp, graph_entry_t *entry)
 }
 
 /**
- * initialise the simple dumper
+ * initialize the simple dumper
  */
 static void csv_init(dumper_t *dmp, const char *name)
 {