is_irn_always_opt() added
[libfirm] / ir / ir / irdump.h
index b2c6d9c..40a767f 100644 (file)
@@ -10,7 +10,6 @@
  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
  */
 
-
 /**
  * @file irdump.h
  *
  * Most routines use the name of the passed entity as the name of the
  * file dumped to.
  */
+#ifndef _FIRM_IR_IRDUMP_H_
+#define _FIRM_IR_IRDUMP_H_
 
-
-# ifndef _IRDUMP_H_
-# define _IRDUMP_H_
-
-# include "irnode.h"
-# include "irgraph.h"
-# include "irloop.h"
+#include "irnode.h"
+#include "irgraph.h"
+#include "irloop.h"
 
 /**
  * Names of the 32 supported colors
@@ -151,6 +148,18 @@ void set_dump_node_edge_hook(DUMP_NODE_EDGE_FUNC func);
  */
 DUMP_NODE_EDGE_FUNC get_dump_node_edge_hook(void);
 
+/**
+ * Set the hook to be called to dump additional edges to a block.
+ * @param func The hook to be called.
+ */
+void set_dump_block_edge_hook(DUMP_NODE_EDGE_FUNC func);
+
+/**
+ * Get the additional block edge dump hook.
+ * @return The current additional block edge dump hook.
+ */
+DUMP_NODE_EDGE_FUNC get_dump_block_edge_hook(void);
+
 /** Dump a firm graph.
  *
  *  @param irg     The firm graph to be dumped.
@@ -675,4 +684,4 @@ void *dump_add_node_info_callback(dump_node_info_cb_t *cb, void *data);
  */
 void dump_remv_node_info_callback(void *handle);
 
-# endif /* _IRDUMP_H_ */
+#endif /* _FIRM_IR_IRDUMP_H_ */