[Mlir-commits] [mlir] [mlir] Translating task_reduction clause for pass-by-value vars to LLVMIR (PR #125218)

Tom Eccles llvmlistbot at llvm.org
Fri Jan 2 03:51:25 PST 2026


================
@@ -2469,6 +2473,228 @@ convertOmpTaskOp(omp::TaskOp taskOp, llvm::IRBuilderBase &builder,
   return success();
 }
 
+template <typename OP>
+static 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,
----------------
tblah wrote:

ultra nit: other functions in this file (including added in this PR) put `OP &op` first

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


More information about the Mlir-commits mailing list