summaryrefslogtreecommitdiff
path: root/gcc/dumpfile.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2017-06-07 10:57:11 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2017-06-07 10:57:11 +0200
commit363dc72c15e5191a3f04bde3098793326f681b07 (patch)
tree112f3d360faa21defe2642147dcd3f2b5b6e39f0 /gcc/dumpfile.h
parent49e478afe327f4950287bf77e8d8ba19e96a60f2 (diff)
dumpfile.h (enum tree_dump_index): Rename TDI_generic to TDI_gimple.
* dumpfile.h (enum tree_dump_index): Rename TDI_generic to TDI_gimple. (class dump_manager): Add register_dumps method. * dumpfile.c: Include langhooks.h. (dump_files): Use 0 instead of 3/4/5 for TDI_{original,gimple,nested}. (FIRST_AUTO_NUMBERED_DUMP): Decrease to 1. (FIRST_ME_AUTO_NUMBERED_DUMP): Define. (dump_manager::dump_register): Start with 512 entries instead of 32. (dump_manager::register_dumps): New method. * toplev.c (general_init): Instead of invoking register_dumps langhook, invoke register_dumps method on the dump manager. * gimplify.c (gimplify_function_tree): Use TDI_gimple instead of TDI_generic. * gimple-parser.c (c_parser_parse_gimple_body): Use TDI_gimple instead of TDI_generic. From-SVN: r248947
Diffstat (limited to 'gcc/dumpfile.h')
-rw-r--r--gcc/dumpfile.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/dumpfile.h b/gcc/dumpfile.h
index fda8d712c43..4d9f6b3656a 100644
--- a/gcc/dumpfile.h
+++ b/gcc/dumpfile.h
@@ -31,7 +31,7 @@ enum tree_dump_index
TDI_inheritance, /* dump type inheritance graph. */
TDI_clones, /* dump IPA cloning decisions. */
TDI_original, /* dump each function before optimizing it */
- TDI_generic, /* dump each function after genericizing it */
+ TDI_gimple, /* dump each function after gimplifying it */
TDI_nested, /* dump each function after unnesting it */
TDI_lang_all, /* enable all the language dumps. */
@@ -212,6 +212,11 @@ public:
dump_register (const char *suffix, const char *swtch, const char *glob,
dump_kind dkind, int optgroup_flags, bool take_ownership);
+ /* Allow languages and middle-end to register their dumps before the
+ optimization passes. */
+ void
+ register_dumps ();
+
/* Return the dump_file_info for the given phase. */
struct dump_file_info *
get_dump_file_info (int phase) const;