[flang-commits] [flang] [Flang][OpenMP]Support for lowering task_reduction and in_reduction to MLIR (PR #111155)
Kaviya Rajendiran via flang-commits
flang-commits at lists.llvm.org
Mon Apr 28 01:14:44 PDT 2025
================
@@ -2498,13 +2499,24 @@ genTaskOp(lower::AbstractConverter &converter, lower::SymMap &symTable,
EntryBlockArgs taskArgs;
taskArgs.priv.syms = dsp.getDelayedPrivSymbols();
taskArgs.priv.vars = clauseOps.privateVars;
+ taskArgs.inReduction.syms = inReductionSyms;
+ taskArgs.inReduction.vars = clauseOps.inReductionVars;
+
+ auto genRegionEntryCB = [&](mlir::Operation *op) {
+ genEntryBlock(converter.getFirOpBuilder(), taskArgs, op->getRegion(0));
+ bindEntryBlockArgs(converter,
+ llvm::cast<mlir::omp::BlockArgOpenMPOpInterface>(op),
+ taskArgs);
+ return llvm::to_vector(taskArgs.getSyms());
+ };
----------------
kaviya2510 wrote:
Thank you for pointing it out. I have made the necessary changes, could you please take a look at it?
https://github.com/llvm/llvm-project/pull/111155
More information about the flang-commits
mailing list