X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firdump.h;h=a1981bb907ac2943d2babe17bdf5327a81389b39;hb=8399216d8aebc713bbda04b6e3e250a1d52b20bf;hp=4d42be0aa7bf65526684d723af504282f45e7c57;hpb=72a03f769d4faa642e32930239cd425d10c0b6a4;p=libfirm diff --git a/ir/ir/irdump.h b/ir/ir/irdump.h index 4d42be0aa..a1981bb90 100644 --- a/ir/ir/irdump.h +++ b/ir/ir/irdump.h @@ -167,6 +167,21 @@ void dump_all_ir_graphs (dump_graph_func *dump_graph, const char *suffix); */ void dump_cfg (ir_graph *irg, const char *suffix); +/** Dump a node and its predecessors forming a subgraph to a vcg file. + * + * @param root The node serving as root for the subgraph. + * @param depth Dump nodes on paths starting at root with length depth. + * @param suffix A suffix for the file name. + * + * Dumps the graph to a file. The file name is constructed from the + * name of the entity describing the procedure the passed node is + * in, suffix and the ending -subg_.vcg. nr is a unique number + * for each graph dumped. Eventually overwrites existing files. + * + * @return + * A file containing the subgraph in vcg format. + */ +void dump_subgraph (ir_node *root, int depth, const char *suffix); /* **************************************************************************** */ /* CALLGRAPH DUMPERS */ @@ -278,7 +293,7 @@ int dump_irnode_to_file (FILE *f, ir_node *n); /** Write the irnode and all its attributes to stdout. * */ -void dump_irnode (ir_node *n); +void dump_irnode (ir_node *n); /** Write the graph and all its attributes to the file passed. * Does not write the nodes. @@ -389,7 +404,7 @@ void only_dump_method_with_name(ident *name); /** Sets the vcg flag "display_edge_labels" to no. * * This is necessary as xvcg and aisee both fail to display graphs - * with self-edges if these edges have labes. + * with self-edges if these edges have lables. */ void turn_off_edge_labels(void);