[Mlir-commits] [mlir] [flang][mlir] Add support for translating task_reduction to LLVMIR (PR #120957)

Tom Eccles llvmlistbot at llvm.org
Thu Jan 2 03:20:12 PST 2025


================
@@ -1787,16 +1779,264 @@ convertOmpTaskOp(omp::TaskOp taskOp, llvm::IRBuilderBase &builder,
   return success();
 }
 
+template <typename OP>
+llvm::Value *createTaskReductionFunction(
+    llvm::IRBuilderBase &builder, const std::string &name, llvm::Type *redTy,
+    LLVM::ModuleTranslation &moduleTranslation,
+    SmallVectorImpl<omp::DeclareReductionOp> &reductionDecls, Region &region,
+    OP &op, unsigned Cnt, llvm::ArrayRef<bool> &isByRef,
----------------
tblah wrote:

nit
```suggestion
    OP &op, unsigned cnt, llvm::ArrayRef<bool> &isByRef,
```

https://github.com/llvm/llvm-project/pull/120957


More information about the Mlir-commits mailing list