*/
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_<nr>.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 */
/** 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.
/** Write the type and all its attributes to the file passed.
* */
-void dump_type_to_file (FILE *f, type *tp, unsigned verbosity);
+void dump_type_to_file (FILE *f, type *tp, dump_verbosity verbosity);
/** Write the type and all its attributes to stdout.
* */
/** 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);