From fd2b8c8bd3839a847cc40adc78561ab73448e4cb Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Tue, 28 Feb 2017 09:41:55 +0100 Subject: [PATCH] Rename the "openmp" group of optimizations to "omp" gcc/ * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust all users. * dumpfile.c (optgroup_options): Instead of "openmp", associate OPTGROUP_OMP with "omp". From-SVN: r245768 --- gcc/ChangeLog | 7 +++++++ gcc/doc/optinfo.texi | 5 +++-- gcc/dumpfile.c | 2 +- gcc/dumpfile.h | 3 ++- gcc/omp-expand.c | 4 ++-- gcc/omp-low.c | 4 ++-- gcc/omp-offload.c | 6 +++--- 7 files changed, 20 insertions(+), 11 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9c1025dcf9e..b699944eab8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2017-02-28 Thomas Schwinge + + * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust + all users. + * dumpfile.c (optgroup_options): Instead of "openmp", associate + OPTGROUP_OMP with "omp". + 2017-02-27 Pat Haugen PR target/79544 diff --git a/gcc/doc/optinfo.texi b/gcc/doc/optinfo.texi index 415e9a9af7b..cf6ce001f48 100644 --- a/gcc/doc/optinfo.texi +++ b/gcc/doc/optinfo.texi @@ -59,8 +59,9 @@ Loop optimization passes. Enabled by @option{-loop}. @item OPTGROUP_INLINE Inlining passes. Enabled by @option{-inline}. -@item OPTGROUP_OPENMP -OpenMP passes. Enabled by @option{-openmp}. +@item OPTGROUP_OMP +OMP (Offloading and Multi Processing) passes. Enabled by +@option{-omp}. @item OPTGROUP_VEC Vectorization passes. Enabled by @option{-vec}. diff --git a/gcc/dumpfile.c b/gcc/dumpfile.c index 2c5dce24228..6b9a47c5a26 100644 --- a/gcc/dumpfile.c +++ b/gcc/dumpfile.c @@ -140,7 +140,7 @@ static const struct dump_option_value_info optgroup_options[] = {"ipa", OPTGROUP_IPA}, {"loop", OPTGROUP_LOOP}, {"inline", OPTGROUP_INLINE}, - {"openmp", OPTGROUP_OPENMP}, + {"omp", OPTGROUP_OMP}, {"vec", OPTGROUP_VEC}, {"optall", OPTGROUP_ALL}, {NULL, 0} diff --git a/gcc/dumpfile.h b/gcc/dumpfile.h index 7c8f7a2f61d..3886f98150c 100644 --- a/gcc/dumpfile.h +++ b/gcc/dumpfile.h @@ -99,7 +99,8 @@ enum tree_dump_index #define OPTGROUP_LOOP (1 << 2) /* Loop optimization passes */ #define OPTGROUP_INLINE (1 << 3) /* Inlining passes */ #define OPTGROUP_VEC (1 << 4) /* Vectorization passes */ -#define OPTGROUP_OPENMP (1 << 5) /* OpenMP specific transformations */ +#define OPTGROUP_OMP (1 << 5) /* OMP (Offloading and Multi + Processing) transformations */ #define OPTGROUP_OTHER (1 << 6) /* All other passes */ #define OPTGROUP_ALL (OPTGROUP_IPA | OPTGROUP_LOOP | OPTGROUP_INLINE \ | OPTGROUP_VEC | OPTGROUP_OTHER) diff --git a/gcc/omp-expand.c b/gcc/omp-expand.c index 55e54e4dbf8..ea951d609b0 100644 --- a/gcc/omp-expand.c +++ b/gcc/omp-expand.c @@ -8134,7 +8134,7 @@ const pass_data pass_data_expand_omp = { GIMPLE_PASS, /* type */ "ompexp", /* name */ - OPTGROUP_OPENMP, /* optinfo_flags */ + OPTGROUP_OMP, /* optinfo_flags */ TV_NONE, /* tv_id */ PROP_gimple_any, /* properties_required */ PROP_gimple_eomp, /* properties_provided */ @@ -8181,7 +8181,7 @@ const pass_data pass_data_expand_omp_ssa = { GIMPLE_PASS, /* type */ "ompexpssa", /* name */ - OPTGROUP_OPENMP, /* optinfo_flags */ + OPTGROUP_OMP, /* optinfo_flags */ TV_NONE, /* tv_id */ PROP_cfg | PROP_ssa, /* properties_required */ PROP_gimple_eomp, /* properties_provided */ diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 35df02c70a4..c2c69cbcc6e 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -8920,7 +8920,7 @@ const pass_data pass_data_lower_omp = { GIMPLE_PASS, /* type */ "omplower", /* name */ - OPTGROUP_OPENMP, /* optinfo_flags */ + OPTGROUP_OMP, /* optinfo_flags */ TV_NONE, /* tv_id */ PROP_gimple_any, /* properties_required */ PROP_gimple_lomp | PROP_gimple_lomp_dev, /* properties_provided */ @@ -9232,7 +9232,7 @@ const pass_data pass_data_diagnose_omp_blocks = { GIMPLE_PASS, /* type */ "*diagnose_omp_blocks", /* name */ - OPTGROUP_OPENMP, /* optinfo_flags */ + OPTGROUP_OMP, /* optinfo_flags */ TV_NONE, /* tv_id */ PROP_gimple_any, /* properties_required */ 0, /* properties_provided */ diff --git a/gcc/omp-offload.c b/gcc/omp-offload.c index aed9e140a72..fad038f32e7 100644 --- a/gcc/omp-offload.c +++ b/gcc/omp-offload.c @@ -1625,7 +1625,7 @@ const pass_data pass_data_oacc_device_lower = { GIMPLE_PASS, /* type */ "oaccdevlow", /* name */ - OPTGROUP_OPENMP, /* optinfo_flags */ + OPTGROUP_OMP, /* optinfo_flags */ TV_NONE, /* tv_id */ PROP_cfg, /* properties_required */ 0 /* Possibly PROP_gimple_eomp. */, /* properties_provided */ @@ -1727,7 +1727,7 @@ const pass_data pass_data_omp_device_lower = { GIMPLE_PASS, /* type */ "ompdevlow", /* name */ - OPTGROUP_OPENMP, /* optinfo_flags */ + OPTGROUP_OMP, /* optinfo_flags */ TV_NONE, /* tv_id */ PROP_cfg, /* properties_required */ PROP_gimple_lomp_dev, /* properties_provided */ @@ -1771,7 +1771,7 @@ const pass_data pass_data_omp_target_link = { GIMPLE_PASS, /* type */ "omptargetlink", /* name */ - OPTGROUP_OPENMP, /* optinfo_flags */ + OPTGROUP_OMP, /* optinfo_flags */ TV_NONE, /* tv_id */ PROP_ssa, /* properties_required */ 0, /* properties_provided */ -- 2.30.2