Mercurial > hg > CbC > CbC_gcc
comparison gcc/sel-sched-dump.h @ 55:77e2b8dfacca gcc-4.4.5
update it from 4.4.3 to 4.5.0
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 12 Feb 2010 23:39:51 +0900 |
parents | a06113de4d67 |
children | f6334be47118 |
comparison
equal
deleted
inserted
replaced
52:c156f1bd5cd9 | 55:77e2b8dfacca |
---|---|
1 /* Instruction scheduling pass. Log dumping infrastructure. | 1 /* Instruction scheduling pass. Log dumping infrastructure. |
2 Copyright (C) 2006, 2007, 2008 Free Software Foundation, Inc. | 2 Copyright (C) 2006, 2007, 2008 Free Software Foundation, Inc. |
3 | 3 |
4 This file is part of GCC. | 4 This file is part of GCC. |
5 | 5 |
6 GCC is free software; you can redistribute it and/or modify it under | 6 GCC is free software; you can redistribute it and/or modify it under |
53 | 53 |
54 /* Dump loop father number of the given bb. */ | 54 /* Dump loop father number of the given bb. */ |
55 SEL_DUMP_CFG_BB_LOOP = 512, | 55 SEL_DUMP_CFG_BB_LOOP = 512, |
56 | 56 |
57 /* The default flags for cfg dumping. */ | 57 /* The default flags for cfg dumping. */ |
58 SEL_DUMP_CFG_FLAGS = (SEL_DUMP_CFG_CURRENT_REGION | 58 SEL_DUMP_CFG_FLAGS = (SEL_DUMP_CFG_CURRENT_REGION |
59 | SEL_DUMP_CFG_BB_NOTES_LIST | 59 | SEL_DUMP_CFG_BB_NOTES_LIST |
60 | SEL_DUMP_CFG_AV_SET | 60 | SEL_DUMP_CFG_AV_SET |
61 | SEL_DUMP_CFG_LV_SET | 61 | SEL_DUMP_CFG_LV_SET |
62 | SEL_DUMP_CFG_BB_INSNS | 62 | SEL_DUMP_CFG_BB_INSNS |
63 | SEL_DUMP_CFG_FENCES | 63 | SEL_DUMP_CFG_FENCES |
64 | SEL_DUMP_CFG_INSN_SEQNO | 64 | SEL_DUMP_CFG_INSN_SEQNO |
65 | SEL_DUMP_CFG_BB_LOOP) | 65 | SEL_DUMP_CFG_BB_LOOP) |
66 }; | 66 }; |
67 | 67 |
68 /* These values control the dumping of insns containing in expressions. */ | 68 /* These values control the dumping of insns containing in expressions. */ |
69 enum dump_insn_rtx_def | 69 enum dump_insn_rtx_def |
115 is explained in sel-sched-ir.h. */ | 115 is explained in sel-sched-ir.h. */ |
116 enum dump_expr_def | 116 enum dump_expr_def |
117 { | 117 { |
118 /* Dump the vinsn behind this expression. */ | 118 /* Dump the vinsn behind this expression. */ |
119 DUMP_EXPR_VINSN = 2, | 119 DUMP_EXPR_VINSN = 2, |
120 | 120 |
121 /* Dump expression's SPEC parameter. */ | 121 /* Dump expression's SPEC parameter. */ |
122 DUMP_EXPR_SPEC = 4, | 122 DUMP_EXPR_SPEC = 4, |
123 | 123 |
124 /* Dump expression's priority. */ | 124 /* Dump expression's priority. */ |
125 DUMP_EXPR_PRIORITY = 8, | 125 DUMP_EXPR_PRIORITY = 8, |
144 | 144 |
145 extern void dump_expr_1 (expr_t, int); | 145 extern void dump_expr_1 (expr_t, int); |
146 extern void dump_expr (expr_t); | 146 extern void dump_expr (expr_t); |
147 extern void debug_expr (expr_t); | 147 extern void debug_expr (expr_t); |
148 | 148 |
149 /* A enumeration for dumping flags of an insn. The difference from | 149 /* A enumeration for dumping flags of an insn. The difference from |
150 dump_insn_rtx_def is that these fields are for insns in stream only. */ | 150 dump_insn_rtx_def is that these fields are for insns in stream only. */ |
151 enum dump_insn_def | 151 enum dump_insn_def |
152 { | 152 { |
153 /* Dump expression of this insn. */ | 153 /* Dump expression of this insn. */ |
154 DUMP_INSN_EXPR = 2, | 154 DUMP_INSN_EXPR = 2, |
181 | 181 |
182 /* When this flag is on, we are dumping to the .dot file. | 182 /* When this flag is on, we are dumping to the .dot file. |
183 When it is off, we are dumping to log. */ | 183 When it is off, we are dumping to log. */ |
184 extern bool sched_dump_to_dot_p; | 184 extern bool sched_dump_to_dot_p; |
185 | 185 |
186 /* This macro acts like printf but dumps information to the .dot file. | 186 /* This macro acts like printf but dumps information to the .dot file. |
187 Used when dumping control flow. */ | 187 Used when dumping control flow. */ |
188 #define sel_print_to_dot(...) \ | 188 #define sel_print_to_dot(...) \ |
189 do { \ | 189 do { \ |
190 int __j = 1 + 2 * snprintf (NULL, 0, __VA_ARGS__); \ | 190 int __j = 1 + 2 * snprintf (NULL, 0, __VA_ARGS__); \ |
191 char *__s = XALLOCAVEC (char, __j); \ | 191 char *__s = XALLOCAVEC (char, __j); \ |