[flang-commits] [flang] [mlir] [OpenMP][mlir] Add DynGroupPrivateClause in omp dialect (PR #153562)
via flang-commits
flang-commits at lists.llvm.org
Wed Apr 29 08:24:42 PDT 2026
================
@@ -7164,11 +7186,20 @@ convertOmpTarget(Operation &opInst, llvm::IRBuilderBase &builder,
if (Value targetIfCond = targetOp.getIfExpr())
ifCond = moduleTranslation.lookupValue(targetIfCond);
+ Value dynGroupPrivateSize = targetOp.getDynGroupprivateSize();
+ llvm::Value *dynSizeVal = nullptr;
+ if (dynGroupPrivateSize)
+ dynSizeVal = moduleTranslation.lookupValue(dynGroupPrivateSize);
----------------
skc7 wrote:
Thanks for the suggestion.
Added CreateIntCast to truncate/extend the `dynSizeVal` to `i32` before passing it to `createTarget()`, matching the `uint32_t DynCGroupMem` field in `KernelArgsTy`. Also added a translation test covering i64, i16, and i32 cases.
https://github.com/llvm/llvm-project/pull/153562
More information about the flang-commits
mailing list