[llvm] [Frontend][OpenMP] Remove `reduction` from allowed clauses for `target` (PR #90754)

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Wed May 1 10:45:28 PDT 2024


https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/90754

The "reduction" clause is not allowed on the "target" construct.

>From 37d3bf0405adccd1dce31768219871d1b00f4c74 Mon Sep 17 00:00:00 2001
From: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
Date: Wed, 1 May 2024 12:21:51 -0500
Subject: [PATCH] [Frontend][OpenMP] Remove `reduction` from allowed clauses
 for `target`

The "reduction" clause is not allowed on the "target" construct.
---
 llvm/include/llvm/Frontend/OpenMP/OMP.td | 1 -
 1 file changed, 1 deletion(-)

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>,



More information about the llvm-commits mailing list