[all-commits] [llvm/llvm-project] 7ff809: [flang][OpenMP] Add semantic check for declare tar...
Shraiysh via All-commits
all-commits at lists.llvm.org
Thu Nov 16 16:03:45 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7ff8094a397127c8204c34079f8893fc8acbf1dd
https://github.com/llvm/llvm-project/commit/7ff8094a397127c8204c34079f8893fc8acbf1dd
Author: Shraiysh <Shraiysh.Vaishay at amd.com>
Date: 2023-11-16 (Thu, 16 Nov 2023)
Changed paths:
M flang/lib/Lower/OpenMP.cpp
M flang/lib/Parser/openmp-parsers.cpp
M flang/lib/Semantics/check-omp-structure.cpp
M flang/lib/Semantics/check-omp-structure.h
M flang/lib/Semantics/resolve-directives.cpp
M flang/test/Lower/OpenMP/FIR/declare-target-data.f90
M flang/test/Lower/OpenMP/FIR/declare-target-func-and-subr.f90
A flang/test/Lower/OpenMP/FIR/declare-target-implicit-func-and-subr-cap-enter.f90
M flang/test/Lower/OpenMP/declare-target-data.f90
M flang/test/Lower/OpenMP/declare-target-func-and-subr.f90
A flang/test/Lower/OpenMP/declare-target-implicit-func-and-subr-cap-enter.f90
M flang/test/Lower/OpenMP/declare-target-implicit-tarop-cap.f90
M flang/test/Lower/OpenMP/function-filtering-2.f90
M flang/test/Lower/OpenMP/function-filtering.f90
M flang/test/Parser/OpenMP/declare_target-device_type.f90
M flang/test/Semantics/OpenMP/declarative-directive.f90
M flang/test/Semantics/OpenMP/declare-target01.f90
M flang/test/Semantics/OpenMP/declare-target02.f90
M flang/test/Semantics/OpenMP/declare-target06.f90
M flang/test/Semantics/OpenMP/requires04.f90
M flang/test/Semantics/OpenMP/requires05.f90
M llvm/include/llvm/Frontend/OpenMP/OMP.td
Log Message:
-----------
[flang][OpenMP] Add semantic check for declare target (#71861)
This patch adds the following check from OpenMP 5.2.
```
If the directive has a clause, it must contain at least one enter clause
or at least one link clause.
```
Also added a warning for the deprication of `TO` clause on `DECLARE
TARGET` construct.
```
The clause-name to may be used as a synonym for the clause-name enter.
This use has been deprecated.
```
Based on the tests for to clause, the tests for enter clause are added.
This patch does not add tests where both to and enter clause are used together.
More information about the All-commits
mailing list