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 - C++
- 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:15:54 +0200
- Subject: Re: [OpenACC] Update OpenACC data clause semantics to the 2.5 behavior - C++
- References: <7fa7637f-e7f5-d43d-13f1-706c77e8e957@codesourcery.com> <836f376f-513d-dd29-9133-6526bfb59866@codesourcery.com> <c4ee01b1-8ee3-17f2-bf18-3e52ada5772f@codesourcery.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Jun 19, 2018 at 09:58:26AM -0700, Cesar Philippidis wrote:
> This patch implements the OpenACC 2.5 data clause semantics in the C++ FE.
>
> 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/cp/
> * parser.c (cp_parser_omp_clause_name): Add support for finalize
> and if_present. Make present_or_{copy,copyin,copyout,create} aliases
> to their non-present_or_* counterparts. Make 'self' an alias to
> PRAGMA_OACC_CLAUSE_HOST.
> (cp_parser_oacc_data_clause): Update GOMP mappings for
> PRAGMA_OACC_CLAUSE_{COPY,COPYIN,COPYOUT,CREATE,DELETE}. Remove
> PRAGMA_OACC_CLAUSE_{SELF,PRESENT_OR_*}.
> (cp_parser_oacc_all_clauses): Handle finalize and if_present clauses.
> Remove support for present_or_* clauses.
> (OACC_KERNELS_CLAUSE_MASK): Remove PRESENT_OR_* clauses.
> (OACC_PARALLEL_CLAUSE_MASK): Likewise.
> (OACC_DECLARE_CLAUSE_MASK): Likewise.
> (OACC_DATA_CLAUSE_MASK): Likewise.
> (OACC_ENTER_DATA_CLAUSE_MASK): Remove PRESENT_OR_* clauses.
> (OACC_EXIT_DATA_CLAUSE_MASK): Add FINALIZE clause.
> (OACC_UPDATE_CLAUSE_MASK): Remove SELF, add IF_PRESENT.
> (cp_parser_oacc_declare): Remove PRESENT_OR_* clauses.
> * pt.c (tsubst_omp_clauses): Handle IF_PRESENT and FINALIZE.
> * semantics.c (finish_omp_clauses): Handle IF_PRESENT and FINALIZE.
Ok, thanks.
Jakub