-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Frontend][OpenMP] Remove reduction
from allowed clauses for target
#90754
[Frontend][OpenMP] Remove reduction
from allowed clauses for target
#90754
Conversation
@llvm/pr-subscribers-clang @llvm/pr-subscribers-flang-openmp Author: Krzysztof Parzyszek (kparzysz) ChangesThe "reduction" clause is not allowed on the "target" construct. Full diff: https://github.com/llvm/llvm-project/pull/90754.diff 1 Files Affected:
diff --git a/llvm/include/llvm/Frontend/OpenMP/OMP.td b/llvm/include/llvm/Frontend/OpenMP/OMP.td
index e91169e8da1aa5..609df6a4c54aa5 100644
--- a/llvm/include/llvm/Frontend/OpenMP/OMP.td
+++ b/llvm/include/llvm/Frontend/OpenMP/OMP.td
@@ -682,7 +682,6 @@ def OMP_Target : Directive<"target"> {
VersionedClause<OMPC_FirstPrivate>,
VersionedClause<OMPC_IsDevicePtr>,
VersionedClause<OMPC_HasDeviceAddr, 51>,
- VersionedClause<OMPC_Reduction>,
VersionedClause<OMPC_InReduction, 50>,
VersionedClause<OMPC_Allocate>,
VersionedClause<OMPC_UsesAllocators, 50>,
|
There will be build failures because I haven't changed any tests. In commit 3f96fe6, Alexey added support for Is this some kind of an extension we decided to implement? |
I don't remember already, probably some kind of extension to support combined directives codegen (most probably). |
The current for OpenMP 6.0 also does not allow to have Unless there's a very good need to keep it, I'd vote for removing it to and not extend OpenMP that way. |
Is everybody ok with removing it, and removing the parts of the clang tests that use it? If not, what else should we do? Having it allowed in the .td file will affect flang too. We could implement |
I will vote for removing it if it is not permitted in the standard. But it might be worth asking via an RFC in clang or openmp discourse. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but please update the tests.
The "reduction" clause is not allowed on the "target" construct. The RFC: https://discourse.llvm.org/t/removing-reduction-from-allowed-clauses-for-target-in-omp-td/78881
37d3bf0
to
94d7922
Compare
…t` (llvm#90754) The "reduction" clause is not allowed on the "target" construct.
The "reduction" clause is not allowed on the "target" construct.