2 * Copyright (C) 2002-2007, The Perl Foundation.
6 #ifndef PARROT_IMCC_DEBUG_H_GUARD
7 #define PARROT_IMCC_DEBUG_H_GUARD
10 #define DEBUG_PARROT 0x0001
11 #define DEBUG_LEXER 0x0002
12 #define DEBUG_PARSER 0x0004
13 #define DEBUG_IMC 0x0008
14 #define DEBUG_CFG 0x0010
15 #define DEBUG_OPT1 0x0020
16 #define DEBUG_OPT2 0x0040
17 #define DEBUG_SPILL 0x0080
19 #define DEBUG_AST 0x0100
20 #define DEBUG_REG 0x0200
21 #define DEBUG_REG2 0x0400
23 #define DEBUG_PBC 0x1000
24 #define DEBUG_PBC_CONST 0x2000
25 #define DEBUG_PBC_FIXUP 0x4000
27 /* HEADERIZER BEGIN: compilers/imcc/debug.c */
30 void IMCC_debug(PARROT_INTERP
, int level
, ARGIN(const char *fmt
), ...)
31 __attribute__nonnull__(1)
32 __attribute__nonnull__(3);
35 PARROT_DOES_NOT_RETURN
36 void IMCC_fatal(PARROT_INTERP
,
38 ARGIN(const char *fmt
),
40 __attribute__nonnull__(1)
41 __attribute__nonnull__(3);
44 PARROT_DOES_NOT_RETURN
45 void IMCC_fatal_standalone(PARROT_INTERP
,
47 ARGIN(const char *fmt
),
49 __attribute__nonnull__(1)
50 __attribute__nonnull__(3);
53 PARROT_DOES_NOT_RETURN
54 void IMCC_fataly(PARROT_INTERP
,
56 ARGIN(const char *fmt
),
58 __attribute__nonnull__(1)
59 __attribute__nonnull__(3);
62 PARROT_DOES_NOT_RETURN
63 void IMCC_fataly_standalone(PARROT_INTERP
,
65 ARGIN(const char *fmt
),
67 __attribute__nonnull__(1)
68 __attribute__nonnull__(3);
71 void IMCC_info(PARROT_INTERP
, int level
, ARGIN(const char *fmt
), ...)
72 __attribute__nonnull__(1)
73 __attribute__nonnull__(3);
76 void IMCC_warning(PARROT_INTERP
, ARGIN(const char *fmt
), ...)
77 __attribute__nonnull__(1)
78 __attribute__nonnull__(2);
80 void dump_cfg(ARGIN(const IMC_Unit
*unit
))
81 __attribute__nonnull__(1);
83 void dump_dominance_frontiers(ARGIN(const IMC_Unit
*unit
))
84 __attribute__nonnull__(1);
86 void dump_dominators(ARGIN(const IMC_Unit
*unit
))
87 __attribute__nonnull__(1);
89 void dump_instructions(PARROT_INTERP
, ARGIN(const IMC_Unit
*unit
))
90 __attribute__nonnull__(1)
91 __attribute__nonnull__(2);
93 void dump_interference_graph(ARGIN(const IMC_Unit
*unit
))
94 __attribute__nonnull__(1);
96 void dump_labels(ARGIN(const IMC_Unit
*unit
))
97 __attribute__nonnull__(1);
99 void dump_liveness_status(ARGIN(const IMC_Unit
*unit
))
100 __attribute__nonnull__(1);
102 void dump_liveness_status_var(
103 ARGIN(const IMC_Unit
*unit
),
104 ARGIN(const SymReg
* r
))
105 __attribute__nonnull__(1)
106 __attribute__nonnull__(2);
108 void dump_loops(ARGIN(const IMC_Unit
*unit
))
109 __attribute__nonnull__(1);
111 void dump_symreg(ARGIN(const IMC_Unit
*unit
))
112 __attribute__nonnull__(1);
114 /* HEADERIZER END: compilers/imcc/debug.c */
117 #endif /* PARROT_IMCC_DEBUG_H_GUARD */
121 * c-file-style: "parrot"
123 * vim: expandtab shiftwidth=4: