Fortran: Add support for OpenMP's nontemporal clause
authorTobias Burnus <tobias@codesourcery.com>
Wed, 12 Aug 2020 16:09:57 +0000 (18:09 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 12 Aug 2020 16:09:57 +0000 (18:09 +0200)
commit21cfe724cbdc30612bf1ef59b26f19ada2210832
tree8a7b1d52ea1fd089883e1536a4f4431b87b2cf95
parentfe9458c280dbd6e8b892db4ca3b64185049c376b
Fortran: Add support for OpenMP's nontemporal clause

gcc/fortran/ChangeLog:

* gfortran.h: Add OMP_LIST_NONTEMPORAL.
* dump-parse-tree.c (show_omp_clauses): Dump it
* openmp.c (enum omp_mask1): Add OMP_CLAUSE_NOTEMPORAL.
(OMP_SIMD_CLAUSES): Add it.
(gfc_match_omp_clauses): Match nontemporal clause.
* trans-openmp.c (gfc_trans_omp_clauses): Process
nontemporal clause.

gcc/testsuite/ChangeLog:

* gfortran.dg/gomp/nontemporal-1.f90: New test.
* gfortran.dg/gomp/nontemporal-2.f90: New test.
gcc/fortran/dump-parse-tree.c
gcc/fortran/gfortran.h
gcc/fortran/openmp.c
gcc/fortran/trans-openmp.c
gcc/testsuite/gfortran.dg/gomp/nontemporal-1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/nontemporal-2.f90 [new file with mode: 0644]