remove conv after load and before stores
[libfirm] / ir / ana2 / pto_debug.h
1 /* -*- c -*- */
2
3 /*
4  * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
5  *
6  * This file is part of libFirm.
7  *
8  * This file may be distributed and/or modified under the terms of the
9  * GNU General Public License version 2 as published by the Free Software
10  * Foundation and appearing in the file LICENSE.GPL included in the
11  * packaging of this file.
12  *
13  * Licensees holding valid libFirm Professional Edition licenses may use
14  * this file in accordance with the libFirm Commercial License.
15  * Agreement provided with the Software.
16  *
17  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
18  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19  * PURPOSE.
20  */
21
22 /**
23  * @file
24  * @brief     Useful Macros for Debugging
25  * @author    Florian
26  * @date      Sat Nov 13 19:30:21 CET 2004
27  * @version   $Id$
28  */
29 # ifndef FIRM_ANA2_PTO_DEBUG_H
30 # define FIRM_ANA2_PTO_DEBUG_H
31
32 # include "irnode.h"
33
34 /* ===================================================
35    Global Defines:
36    =================================================== */
37 # define DBGPRINT(lvl, args) if (get_dbg_lvl () > lvl) { fprintf args; }
38 # define DBGEXE(lvl, cmd) if (get_dbg_lvl () > lvl) {cmd;}
39 # define OPNAME(node) get_irn_opname(node)
40 # define OPNUM(node) get_irn_node_nr(node)
41 # define HERE(msg)  fprintf (stdout, "%s:%i %s\n", __FUNCTION__, __LINE__, msg)
42 # define HERE2(msg1, msg2)  fprintf (stdout, "%s:%i: %s %s\n", __FUNCTION__, __LINE__, msg1, msg2)
43 # define HERE3(msg1, msg2, msg3)  fprintf (stdout, "%s:%i: %s %s %s\n", __FUNCTION__, __LINE__, msg1, msg2, msg3)
44
45 /* ===================================================
46  Global Data Types:
47  =================================================== */
48
49 /* ===================================================
50  Global Prototypes:
51  =================================================== */
52 int get_dbg_lvl (void);
53 void set_dbg_lvl (int);
54
55 void pto_print_pto (ir_node*);
56
57 /* ===================================================
58    Global Variables:
59    =================================================== */
60
61 # endif
62
63
64 \f
65 /*
66   $Log$
67   Revision 1.5  2005/01/14 13:33:10  liekweg
68   Use only public irnode interface
69
70   Revision 1.4  2004/12/21 15:51:07  beck
71   simplifyed
72
73   Revision 1.3  2004/12/20 17:34:35  liekweg
74   fix recursion handling
75
76   Revision 1.2  2004/11/24 14:53:56  liekweg
77   Bugfixes
78
79   Revision 1.1  2004/11/18 16:37:34  liekweg
80   rewritten
81
82
83 */