Introduce gimple_omp_single
commit819ad089c7a9e011a6ea96e9a695066d7f941dd7
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 17 Dec 2013 15:57:07 +0000 (17 10:57 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Fri, 24 Oct 2014 21:24:32 +0000 (24 17:24 -0400)
tree0cb2efce6d562eaac5d39f22b4ad7aa0730ca005
parente276d23e318335b348e3564261c005eb5f9a36cc
Introduce gimple_omp_single

This corresponds to:
  [PATCH 42/89] Introduce gimple_omp_single
  https://gcc.gnu.org/ml/gcc-patches/2014-04/msg01206.html
from the original 89-patch kit

That earlier patch was approved by Jeff:
> OK with expected changes due to renaming/updates to const handling.
> Please repost the final patch for archival purposes.
in https://gcc.gnu.org/ml/gcc-patches/2014-05/msg00807.html

gcc/
* coretypes.h (gimple_omp_single): New typedef.
(const_gimple_omp_single): New typedef.

* gimple.h (gimple_build_omp_single): Return a gimple_omp_single
rather than a plain gimple.
(gimple_omp_single_set_clauses): Require a gimple_omp_single
rather than a plain gimple.

* gimple-pretty-print.c (dump_gimple_omp_single): Require a
gimple_omp_single rather than a plain gimple.
(pp_gimple_stmt_1): Add checked cast to gimple_omp_single within
GIMPLE_OMP_SINGLE case of switch statement.

* gimple.c (gimple_build_omp_single): Return a gimple_omp_single
rather than a plain gimple.

* omp-low.c (scan_omp_single): Require a gimple_omp_single rather
than a plain gimple.
(scan_omp_1_stmt): Add checked cast to gimple_omp_single within
GIMPLE_OMP_SINGLE case of switch statement.
(lower_omp_single_simple): Require a gimple_omp_single rather
than a plain gimple.
(lower_omp_single_copy): Likewise.
(lower_omp_single): Strengthen local "single_stmt" from gimple to
gimple_omp_single.
gcc/ChangeLog.gimple-classes
gcc/coretypes.h
gcc/gimple-pretty-print.c
gcc/gimple.c
gcc/gimple.h
gcc/omp-low.c