[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 ®ion,
+ OP &op, unsigned cnt,
----------------
tblah wrote:
optional suggestion: this function barely needs to be templated. The accesses to the task reduction variable could be done at the call-side and passed in.
https://github.com/llvm/llvm-project/pull/125218
More information about the Mlir-commits
mailing list