omp-low.c (struct omp_context): Remove gwv_below, gwv_this fields.
authorNathan Sidwell <nathan@codesourcery.com>
Wed, 28 Oct 2015 03:00:50 +0000 (03:00 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 28 Oct 2015 03:00:50 +0000 (03:00 +0000)
commite4834818d22f5c663b24940fd5b04da266e11fe8
treecf0f5b4ce7a31924dfd29c43d294f7b3153f4496
parenta1c1908bbd8b298e601f85d76ffa19a487c54ea2
omp-low.c (struct omp_context): Remove gwv_below, gwv_this fields.

* omp-low.c (struct omp_context): Remove gwv_below, gwv_this
fields.
(is_oacc_parallel, is_oacc_kernels): New.
(enclosing_target_ctx): May return NULL.
(ctx_in_oacc_kernels_region): New.
(check_oacc_kernel_gwv): New.
(oacc_loop_or_target_p): Delete.
(scan_omp_for): Don't calculate gwv mask.  Check parallel clause
operands.  Strip reductions fro kernels.
(scan_omp_target): Don't calculate gwv mask.
(lower_oacc_head_mark, lower_oacc_loop_marker,
lower_oacc_head_tail): New.
(struct oacc_collapse): New.
(expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
(expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
Remove OpenACC handling.
(expand_oacc_for): New.
(expand_omp_for): Call expand_oacc_for.
(lower_omp_for): Call lower_oacc_head_tail.

From-SVN: r229472
gcc/ChangeLog
gcc/omp-low.c