5 File name: ir/ana/pto_debug.c
6 Purpose: Useful Macros for Debugging
9 Created: Sat Nov 13 19:30:21 CET 2004
11 Copyright: (c) 1999-2004 Universität Karlsruhe
12 Licence: This file is protected by the GPL - GNU GENERAL PUBLIC LICENSE.
20 pto_debug: Useful Macros for Debugging
23 # include "pto_debug.h"
24 # include "pto_comp.h"
28 /* # include "xmalloc.h" */
32 /* Local Data Types: */
34 /* Local Variables: */
35 static int dbg_lvl = 0;
37 /* Local Prototypes: */
39 /* ===================================================
41 =================================================== */
44 /* ===================================================
45 Exported Implementation:
46 =================================================== */
52 void set_dbg_lvl (int lvl)
54 /* fprintf (stdout, "%s:%s (): dbg_lvl: %i -> %i\n", */
55 /* __FILE__, __FUNCTION__, dbg_lvl, lvl); */
59 void pto_print_pto (ir_node *node)
61 pto_t *pto = get_node_pto (node);
63 fprintf (stdout, "pto (%s[%li]) = ", OPNAME (node), OPNUM (node));
65 qset_print (pto->values, stdout);
67 fprintf (stdout, "NULL");
75 Revision 1.5 2005/02/25 16:47:51 liekweg
78 Revision 1.4 2004/12/20 17:34:35 liekweg
79 fix recursion handling
81 Revision 1.3 2004/12/02 16:17:51 beck
82 fixed config.h include
84 Revision 1.2 2004/11/24 14:53:56 liekweg
87 Revision 1.1 2004/11/18 16:37:34 liekweg