This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [OpenACC] Update OpenACC data clause semantics to the 2.5 behavior - middle end
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Cesar Philippidis <cesar at codesourcery dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 20 Jun 2018 18:20:12 +0200
- Subject: Re: [OpenACC] Update OpenACC data clause semantics to the 2.5 behavior - middle end
- References: <7fa7637f-e7f5-d43d-13f1-706c77e8e957@codesourcery.com> <836f376f-513d-dd29-9133-6526bfb59866@codesourcery.com> <1f984431-affd-f63e-fe7e-f52cf1817f7f@codesourcery.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Jun 19, 2018 at 10:00:37AM -0700, Cesar Philippidis wrote:
> This patch implements the OpenACC 2.5 data clause semantics in the
> middle end.
>
> Is it OK for trunk?
>
> Cesar
> 2018-06-19 Chung-Lin Tang <cltang@codesourcery.com>
> Thomas Schwinge <thomas@codesourcery.com>
> Cesar Philippidis <cesar@codesourcery.com>
>
> gcc/c-family/
> * c-pragma.h (enum pragma_omp_clause): Add
> PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove
> PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}.
>
> gcc/
> * gimplify.c (gimplify_scan_omp_clauses): Add support for
> OMP_CLAUSE_{IF_PRESENT,FINALIZE}.
> (gimplify_adjust_omp_clauses): Likewise.
> (gimplify_oacc_declare_1): Add support for GOMP_MAP_RELEASE, remove
> support for GOMP_MAP_FORCE_{ALLOC,TO,FROM,TOFROM}.
> (gimplify_omp_target_update): Update handling of acc update and
> enter/exit data.
> * omp-low.c (install_var_field): Remove unused parameter
> base_pointers_restrict.
> (scan_sharing_clauses): Remove base_pointers_restrict parameter.
> Update call to install_var_field. Handle OMP_CLAUSE_{IF_PRESENT,
> FINALIZE}
> (omp_target_base_pointers_restrict_p): Delete.
> (scan_omp_target): Update call to scan_sharing_clauses.
> * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_{IF_PRESENT,
> FINALIZE}.
> * tree-nested.c (convert_nonlocal_omp_clauses): Handle
> OMP_CLAUSE_{IF_PRESENT,FINALIZE}.
> (convert_local_omp_clauses): Likewise.
> * tree-pretty-print.c (dump_omp_clause): Likewise.
> * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_{IF_PRESENT,
> FINALIZE}.
> (omp_clause_code_name): Likewise.
Ok.
Jakub