[Mlir-commits] [flang] [mlir] [OpenMP][mlir] Add DynGroupPrivateClause in omp dialect (PR #153562)
Sergio Afonso
llvmlistbot at llvm.org
Tue Apr 7 09:08:39 PDT 2026
================
@@ -331,6 +331,8 @@ class FunctionFilteringPass
collectRewrite(privateVar, rewriteValues);
for (Value threadLimit : targetOp.getThreadLimitVars())
collectRewrite(threadLimit, rewriteValues);
+ if (Value dynGpSize = targetOp.getDynGroupprivateSize())
+ collectRewrite(dynGpSize, rewriteValues);
----------------
skatrak wrote:
Looking at the uses of this clause in MLIR to LLVM IR translation, I see that this is passed through to `createTarget`, which only uses it when compiling for the host. In that case, what we should do here is to remove the clause as it's done for the group of variables above:
```suggestion
targetOp.getDynGroupprivateSizeMutable().clear();
```
https://github.com/llvm/llvm-project/pull/153562
More information about the Mlir-commits
mailing list