-/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
-* All rights reserved.
-*/
+/*
+ * Project: libFIRM
+ * File name: ir/ir/irdump.h
+ * Purpose: Write vcg representation of firm to file.
+ * Author: Martin Trapp, Christian Schaefer
+ * Modified by: Goetz Lindenmaier, Hubert Schmidt
+ * Created:
+ * CVS-ID: $Id$
+ * Copyright: (c) 1998-2003 Universität Karlsruhe
+ * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
+ */
+
/**
* @file irdump.h
* file dumped to.
*/
-/* $Id$ */
# ifndef _IRDUMP_H_
# define _IRDUMP_H_
/**
* The value of this string will be added to the file name before .vcg
*
- * @todo GL: A hack
+ * @todo GL: A hack -- add parameter to dumper function.
*/
extern char *dump_file_suffix;
* name of the entity describing the procedure (irg->entity) and the
* ending .vcg. Eventually overwrites existing files.
*
- * @see turn_of_edge_labels()
+ * @see turn_off_edge_labels()
*/
void dump_ir_graph (ir_graph *irg);
* name of the entity describing the procedure (irg->entity) and the
* ending .vcg. Eventually overwrites existing files.
*
- * @see turn_of_edge_labels()
+ * @see turn_off_edge_labels()
*/
void dump_ir_block_graph (ir_graph *irg);
* name of the entity describing the procedure (irg->entity) and the
* ending -cfg.vcg. Eventually overwrites existing files.
*
- * @see turn_of_edge_labels()
+ * @see turn_off_edge_labels()
*/
void dump_cfg (ir_graph *irg);
* name of the entity describing the procedure (irg->entity) and the
* ending -type.vcg. Eventually overwrites existing files.
*
- * @see turn_of_edge_labels()
+ * @see turn_off_edge_labels()
*/
void dump_type_graph (ir_graph *irg);
* format.
* Dumps the graph to a file named All_types.vcg.
*
- * @see turn_of_edge_labels()
+ * @see turn_off_edge_labels()
*/
void dump_all_types (void);
* name of the entity describing the procedure (irg->entity) and the
* ending -all.vcg. Eventually overwrites existing files.
*
- * @see turn_of_edge_labels()
+ * @see turn_off_edge_labels()
*/
void dump_ir_graph_w_types (ir_graph *irg);
* name of the entity describing the procedure (irg->entity) and the
* ending -all.vcg. Eventually overwrites existing files.
*
- * @see turn_of_edge_labels()
+ * @see turn_off_edge_labels()
*/
void dump_ir_block_graph_w_types (ir_graph *irg);
* - dump_type_graph()
* - dump_ir_graph_w_types()
*
- * @see turn_of_edge_labels()
+ * @see turn_off_edge_labels()
*/
void dump_all_ir_graphs (dump_graph_func *dump_graph);
* Default setting: false.
*/
void dump_consts_local(bool b);
+/**
+ * Returns false if dump_out_edge_flag or dump_loop_information_flag
+ * are set, else returns dump_const_local_flag.
+ */
+bool get_opt_dump_const_local(void);
/**
* Turns off dumping the values of constant entities. Makes type graphs
* alive
*/
void dump_keepalive_edges(bool b);
+bool get_opt_dump_keepalive_edges(void);
/**
* Turns on dumping the out edges starting from the Start block in
*/
void dont_dump_loop_information(void);
+/**
+ * Dump the information of type field specified in ana/irtypeinfo.h.
+ * If the flag is set, the type name is output in [] in the node label,
+ * else it is output as info.
+ */
+void dump_analysed_type_info(bool b);
+
# endif /* _IRDUMP_H_ */