Mercurial > hg > CbC > CbC_gcc
comparison gcc/optinfo.h @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 /* Optimization information. | 1 /* Optimization information. |
2 Copyright (C) 2018 Free Software Foundation, Inc. | 2 Copyright (C) 2018-2020 Free Software Foundation, Inc. |
3 Contributed by David Malcolm <dmalcolm@redhat.com>. | 3 Contributed by David Malcolm <dmalcolm@redhat.com>. |
4 | 4 |
5 This file is part of GCC. | 5 This file is part of GCC. |
6 | 6 |
7 GCC is free software; you can redistribute it and/or modify it under | 7 GCC is free software; you can redistribute it and/or modify it under |
63 | 63 |
64 which is off by default. */ | 64 which is off by default. */ |
65 | 65 |
66 | 66 |
67 /* Forward decls. */ | 67 /* Forward decls. */ |
68 struct opt_pass; | 68 class opt_pass; |
69 class optinfo_item; | 69 class optinfo_item; |
70 | |
71 /* Should optinfo instances be created? | |
72 All creation of optinfos should be guarded by this predicate. | |
73 Return true if any optinfo destinations are active. */ | |
74 | |
75 extern bool optinfo_enabled_p (); | |
76 | 70 |
77 /* Return true if any of the active optinfo destinations make use | 71 /* Return true if any of the active optinfo destinations make use |
78 of inlining information. | 72 of inlining information. |
79 (if true, then the information is preserved). */ | 73 (if true, then the information is preserved). */ |
80 | 74 |
128 void add_item (optinfo_item *item); | 122 void add_item (optinfo_item *item); |
129 | 123 |
130 void emit_for_opt_problem () const; | 124 void emit_for_opt_problem () const; |
131 | 125 |
132 private: | 126 private: |
133 void emit () const; | |
134 | |
135 /* Pre-canned ways of manipulating the optinfo, for use by friend class | 127 /* Pre-canned ways of manipulating the optinfo, for use by friend class |
136 dump_context. */ | 128 dump_context. */ |
137 void handle_dump_file_kind (dump_flags_t); | 129 void handle_dump_file_kind (dump_flags_t); |
138 | 130 |
139 private: | 131 private: |