2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
+ * doc/optinfo.texi (Optimization groups): Fix option used for
+ OPTGROUP_ALL.
+ * doc/invoke.texi (-fopt-info): Document "omp".
+ * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
+ (OPTGROUP_ALL): Add OPTGROUP_OMP.
+ * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
+ * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
+ * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
+
* dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
all users.
* dumpfile.c (optgroup_options): Instead of "openmp", associate
Enable dumps from all loop optimizations.
@item inline
Enable dumps from all inlining optimizations.
+@item omp
+Enable dumps from all OMP (Offloading and Multi Processing) optimizations.
@item vec
Enable dumps from all vectorization optimizations.
@item optall
All other optimization passes which do not fall into one of the above.
@item OPTGROUP_ALL
-All optimization passes. Enabled by @option{-all}.
+All optimization passes. Enabled by @option{-optall}.
@end ftable
#define OPTGROUP_IPA (1 << 1) /* IPA optimization passes */
#define OPTGROUP_LOOP (1 << 2) /* Loop optimization passes */
#define OPTGROUP_INLINE (1 << 3) /* Inlining passes */
-#define OPTGROUP_VEC (1 << 4) /* Vectorization passes */
-#define OPTGROUP_OMP (1 << 5) /* OMP (Offloading and Multi
+#define OPTGROUP_OMP (1 << 4) /* OMP (Offloading and Multi
Processing) transformations */
+#define OPTGROUP_VEC (1 << 5) /* Vectorization passes */
#define OPTGROUP_OTHER (1 << 6) /* All other passes */
#define OPTGROUP_ALL (OPTGROUP_IPA | OPTGROUP_LOOP | OPTGROUP_INLINE \
- | OPTGROUP_VEC | OPTGROUP_OTHER)
+ | OPTGROUP_OMP | OPTGROUP_VEC | OPTGROUP_OTHER)
/* Define a tree dump switch. */
struct dump_file_info
{
GIMPLE_PASS,
"hsagen", /* name */
- OPTGROUP_NONE, /* optinfo_flags */
+ OPTGROUP_OMP, /* optinfo_flags */
TV_NONE, /* tv_id */
PROP_cfg | PROP_ssa, /* properties_required */
0, /* properties_provided */
{
IPA_PASS, /* type */
"hsa", /* name */
- OPTGROUP_NONE, /* optinfo_flags */
+ OPTGROUP_OMP, /* optinfo_flags */
TV_IPA_HSA, /* tv_id */
0, /* properties_required */
0, /* properties_provided */
{
SIMPLE_IPA_PASS, /* type */
"simdclone", /* name */
- OPTGROUP_NONE, /* optinfo_flags */
+ OPTGROUP_OMP, /* optinfo_flags */
TV_NONE, /* tv_id */
( PROP_ssa | PROP_cfg ), /* properties_required */
0, /* properties_provided */