X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firdump.h;h=2e03d27f149fd3722f980d86207d7306f772338c;hb=9752e3725eb983a735721c79a11812da6ab37361;hp=be72fbd2cef7f373c24a30a40ba5404a8156a557;hpb=26516d16e923b5e1312daad53fcccdbd5645ddad;p=libfirm diff --git a/ir/ir/irdump.h b/ir/ir/irdump.h index be72fbd2c..2e03d27f1 100644 --- a/ir/ir/irdump.h +++ b/ir/ir/irdump.h @@ -42,15 +42,29 @@ /* GRAPH DUMPERS */ /* **************************************************************************** */ +/** + * This hook is called to insert some special nodes into dumped graph + */ +typedef int (*DUMP_IR_GRAPH_FUNC)(FILE *F, ir_graph *irg); /** * This hook is called to dump the vcg attributes of a node to a file. * If this function returns zero, the default attributes are added, else * removed. */ typedef int (*DUMP_NODE_VCGATTR_FUNC)(FILE *F, ir_node *node, ir_node *local); +/** + * This hook is called to dump the vcg attributes of an edge to a file. + * If this function returns zero, the default attributes are added, else + * removed. + */ +typedef int (*DUMP_EDGE_VCGATTR_FUNC)(FILE *F, ir_node *node, int to); +/** Set the ir graph dump hook. */ +void set_dump_ir_graph_hook(DUMP_IR_GRAPH_FUNC hook); /** Set the node_vcgattr hook. */ void set_dump_node_vcgattr_hook(DUMP_NODE_VCGATTR_FUNC hook); +/** Set the edge_vcgattr hook. */ +void set_dump_edge_vcgattr_hook(DUMP_EDGE_VCGATTR_FUNC hook); typedef int (*DUMP_NODE_EDGE_FUNC)(FILE *f, ir_node *node);