projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed register requirements for Proj(Start)
[libfirm]
/
ir
/
be
/
belive.c
diff --git
a/ir/be/belive.c
b/ir/be/belive.c
index
ae17a63
..
bce0206
100644
(file)
--- a/
ir/be/belive.c
+++ b/
ir/be/belive.c
@@
-190,6
+190,17
@@
void be_liveness_dump(ir_graph *irg, FILE *f)
irg_block_walk_graph(irg, dump_liveness_walker, NULL, f);
}
irg_block_walk_graph(irg, dump_liveness_walker, NULL, f);
}
+void be_liveness_dumpto(ir_graph *irg, const char *cls_name)
+{
+ FILE *f;
+ char buf[128];
+ ir_snprintf(buf, sizeof(buf), "%F_%s-live.txt", irg, cls_name);
+ if((f = fopen(buf, "wt")) != NULL) {
+ be_liveness_dump(irg, f);
+ fclose(f);
+ }
+}
+
static void dom_check(ir_node *irn, void *data)
{
if(!is_Block(irn) && irn != get_irg_end(get_irn_irg(irn))) {
static void dom_check(ir_node *irn, void *data)
{
if(!is_Block(irn) && irn != get_irg_end(get_irn_irg(irn))) {