+ Oops; forgot to check for trailing whitespace.
[parrot.git] / compilers / imcc / debug.h
blob021936cb15c671e80e5f2bea1b79c7911e8bf606
1 /*
2 * Copyright (C) 2002-2007, The Perl Foundation.
3 * $Id$
4 */
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 */
29 PARROT_API
30 void IMCC_debug(PARROT_INTERP, int level, ARGIN(const char *fmt), ...)
31 __attribute__nonnull__(1)
32 __attribute__nonnull__(3);
34 PARROT_API
35 PARROT_DOES_NOT_RETURN
36 void IMCC_fatal(PARROT_INTERP,
37 NULLOK(int code),
38 ARGIN(const char *fmt),
39 ...)
40 __attribute__nonnull__(1)
41 __attribute__nonnull__(3);
43 PARROT_API
44 PARROT_DOES_NOT_RETURN
45 void IMCC_fatal_standalone(PARROT_INTERP,
46 int code,
47 ARGIN(const char *fmt),
48 ...)
49 __attribute__nonnull__(1)
50 __attribute__nonnull__(3);
52 PARROT_API
53 PARROT_DOES_NOT_RETURN
54 void IMCC_fataly(PARROT_INTERP,
55 NULLOK(int code),
56 ARGIN(const char *fmt),
57 ...)
58 __attribute__nonnull__(1)
59 __attribute__nonnull__(3);
61 PARROT_API
62 PARROT_DOES_NOT_RETURN
63 void IMCC_fataly_standalone(PARROT_INTERP,
64 int code,
65 ARGIN(const char *fmt),
66 ...)
67 __attribute__nonnull__(1)
68 __attribute__nonnull__(3);
70 PARROT_API
71 void IMCC_info(PARROT_INTERP, int level, ARGIN(const char *fmt), ...)
72 __attribute__nonnull__(1)
73 __attribute__nonnull__(3);
75 PARROT_API
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 */
120 * Local variables:
121 * c-file-style: "parrot"
122 * End:
123 * vim: expandtab shiftwidth=4: