Added hook function to intercept node attributes output
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 18 Nov 2004 17:14:02 +0000 (17:14 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 18 Nov 2004 17:14:02 +0000 (17:14 +0000)
[r4434]

ir/ir/irdump.h

index c9a7d60..ae4bbe0 100644 (file)
 /*                                 GRAPH DUMPERS                                */
 /* **************************************************************************** */
 
+/**
+ * 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 *n);
+
+/** Set the node_vcgattr hook. */
+void set_dump_node_vcgattr_hook(DUMP_NODE_VCGATTR_FUNC hook);
+
 /** Dump a firm graph.
  *
  *  @param irg  The firm graph to be dumped.