From 9792affee2e973d9a63e43d0a2e5a779afaee7a1 Mon Sep 17 00:00:00 2001 From: amylaar Date: Mon, 16 Nov 2009 17:39:56 +0000 Subject: [PATCH] * gcc-plugin.h (enum plugin_event): Add PLUGIN_ALL_IPA_PASSES_START, PLUGIN_ALL_IPA_PASSES_EXECUTION and PLUGIN_ALL_IPA_PASSES_END. * plugin.c (plugin_event_name_init): Name them. * gcc-plugin.h (enum event_parameter_type): Copied from highlev-plugin-internal.h . git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/ici-20091108-branch@154209 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/gcc-plugin.h | 20 ++++++++++++++++++++ gcc/plugin.c | 3 +++ 2 files changed, 23 insertions(+) diff --git a/gcc/gcc-plugin.h b/gcc/gcc-plugin.h index d3578afb4d7..7c14fc7f195 100644 --- a/gcc/gcc-plugin.h +++ b/gcc/gcc-plugin.h @@ -52,6 +52,9 @@ enum plugin_event PLUGIN_ALL_PASSES_START, PLUGIN_ALL_PASSES_EXECUTION, PLUGIN_ALL_PASSES_END, + PLUGIN_ALL_IPA_PASSES_START, + PLUGIN_ALL_IPA_PASSES_EXECUTION, + PLUGIN_ALL_IPA_PASSES_END, PLUGIN_AVOID_GATE, PLUGIN_PASS_EXECUTION, PLUGIN_EARLY_GIMPLE_PASSES_START, @@ -75,6 +78,23 @@ struct plugin_argument char *value; /* value is optional and can be NULL. */ }; +/* Parameter codes for invoke_plugin_va_callbacks. These are used in the + interface for high-level plugins, and therefore existing tags should + not change their value. */ +typedef enum +{ + EP_SILENT, /* Used to pass infomation between ICI and plugin, + parameter of this type will not be recorded. + The data type is int. */ + EP_VOID, + EP_CHAR, + EP_UNSIGNED_CHAR, + EP_INT, + EP_UNSIGNED, + EP_LONG, + EP_UNSIGNED_LONG +} event_parameter_type; + /* Additional information about the plugin. Used by --help and --version. */ struct plugin_info diff --git a/gcc/plugin.c b/gcc/plugin.c index 4472e05f893..19e103a3f4a 100644 --- a/gcc/plugin.c +++ b/gcc/plugin.c @@ -67,6 +67,9 @@ static const char *plugin_event_name_init[] = "all_passes_start", "all_passes_execution", "all_passes_end", + "all_ipa_passes_start", + "all_ipa_passes_execution", + "all_ipa_passes_end", "avoid_gate", "pass_execution", "early_gimple_passes_start", -- 2.11.4.GIT