X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=ir%2Fir%2Firdump.h;h=53e1cd2207392dafda71cfd6dc503f000c79b7c6;hb=4e3fd9fecccfd54df03b342bd20e1ecd2d5c940f;hp=0a2df64600c86b22d6de5d67fa1d3e9a7bde1882;hpb=a3143f206440f9c1ea163b61ae1b796d5b0bc048;p=libfirm diff --git a/ir/ir/irdump.h b/ir/ir/irdump.h index 0a2df6460..53e1cd220 100644 --- a/ir/ir/irdump.h +++ b/ir/ir/irdump.h @@ -35,6 +35,7 @@ # include "irnode.h" # include "irgraph.h" +# include "irloop.h" /** * The value of this string will be added to the file name before .vcg @@ -216,6 +217,30 @@ void dump_all_types (void); */ void dump_class_hierarchy (bool entities); + +/** + * Dump a standalone loop tree, which contains the loop nodes and the firm nodes + * belonging to one loop packed together in one subgraph. Dumps to file + * -looptree.vcg + * Turns on edge labels by default. + * + * Implementing this dumper was stimulated by Florian Liekwegs similar dumper. + * + * @arg irg Dump the loop tree for this graph. + * @arg suffix Suffix to filename. + */ +void dump_loop_tree(ir_graph *irg, char *suffix); + +/** Dumps the firm nodes in the sub-loop-tree of loop to a graph. + * Dumps the loop nodes if dump_loop_information() is set. + * + * The name of the file is loop_.vcg. + * + * @arg loop Dump the loop tree for this loop. + * @arg suffix Suffix to filename. + */ +void dump_loop (ir_loop *l, char *suffix); + /** * Sets the vcg flag "display_edge_labels" to no. * @@ -299,11 +324,4 @@ void dump_analysed_type_info(bool b); void dump_pointer_values_to_info(bool b); -/** - * Dump a standalone loop tree, which contains the loop nodes and the firm nodes - * belonging to one loop packed together in one subgraph. - */ - -void dump_standalone_loop_tree(ir_graph *irg); - # endif /* _IRDUMP_H_ */