Further changes for the OpenACC 'if_present' clause on the 'host_data' construct
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 10 Jan 2020 22:23:44 +0000 (23:23 +0100)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Fri, 10 Jan 2020 22:23:44 +0000 (23:23 +0100)
commitb3b75e664a619dae98571a0b3ac8034f5fa7c2be
treec557ed2e8d6ac3cf602df662f0fb8d72c3b56888
parent68be73fc42b969d8d595aeda98e3ea962a7a9ed5
Further changes for the OpenACC 'if_present' clause on the 'host_data' construct

gcc/
* tree.h (OMP_CLAUSE_USE_DEVICE_PTR_IF_PRESENT): New definition.
* tree-core.h: Document it.
* gimplify.c (gimplify_omp_workshare): Set it.
* omp-low.c (lower_omp_target): Use it.
* tree-pretty-print.c (dump_omp_clause): Print it.
gcc/testsuite/
* c-c++-common/goacc/host_data-1.c: Extend.
* gfortran.dg/goacc/host_data-tree.f95: Likewise.

gcc/
* omp-low.c (lower_omp_target) <OMP_CLAUSE_USE_DEVICE_PTR etc.>:
Assert that for OpenACC we always have 'GOMP_MAP_USE_DEVICE_PTR'.

libgomp/
* target.c (gomp_map_vars_internal)
<GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
paths.

From-SVN: r280149
gcc/ChangeLog
gcc/gimplify.c
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/goacc/host_data-1.c
gcc/testsuite/gfortran.dg/goacc/host_data-tree.f95
gcc/tree-core.h
gcc/tree-pretty-print.c
gcc/tree.h
libgomp/ChangeLog
libgomp/target.c