* 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
*/
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.
/** Write the entity and all its attributes to the passed file.
* */
-void dump_entity_to_file (FILE *F, entity *ent, unsigned verbosity);
+void dump_entity_to_file (FILE *F, ir_entity *ent, unsigned verbosity);
/** Write the entity and all its attributes to the stdout.
*
* Calls dump_entity_to_file(). */
-void dump_entity (entity *ent);
+void dump_entity (ir_entity *ent);
/** Write the type and all its attributes to the file passed.
* */
/* FLAGS */
/* **************************************************************************** */
-/** Output a selected graph.
+/** Set a prefix filter for output functions.
*
* All graph dumpers check this name. If the name is != "" and
* not a prefix of the graph to be dumped, the dumper does not
*/
void only_dump_method_with_name(ident *name);
-/** Returns the name set with only_dump_method_with_name(). */
+/** Returns the prefix filter set with only_dump_method_with_name(). */
ident *get_dump_file_filter_ident(void);
/** Returns true if dump file filter is not set, or if it is a
*/
void dump_remv_node_info_callback(void *handle);
-# endif /* _IRDUMP_H_ */
+#endif /* _FIRM_IR_IRDUMP_H_ */