[all-commits] [llvm/llvm-project] 1b14f7: [mlir][OpenMP] Translate task_reduction on taskgroup
Sairudra More via All-commits
all-commits at lists.llvm.org
Sat Jun 13 23:55:34 PDT 2026
Branch: refs/heads/users/saieiei/taskloop-reduction
Home: https://github.com/llvm/llvm-project
Commit: 1b14f729864259995af2561173309d0069b0eec2
https://github.com/llvm/llvm-project/commit/1b14f729864259995af2561173309d0069b0eec2
Author: saieiei <sairudra60 at gmail.com>
Date: 2026-06-14 (Sun, 14 Jun 2026)
Changed paths:
M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
A mlir/test/Target/LLVMIR/openmp-taskgroup-task-reduction.mlir
M mlir/test/Target/LLVMIR/openmp-todo.mlir
Log Message:
-----------
[mlir][OpenMP] Translate task_reduction on taskgroup
Add LLVM IR translation support for the task_reduction clause on
omp.taskgroup.
The translation builds task-reduction descriptors for the listed reduction
variables and emits the runtime initialization before the taskgroup body.
The reducer init and combiner callbacks are generated from the corresponding
omp.declare_reduction regions.
This patch keeps taskloop reduction and in_reduction translation unsupported;
those remain follow-up work. Unsupported task_reduction forms are diagnosed
instead of being lowered incorrectly.
Add MLIR translation tests for taskgroup task_reduction, multiple reducers,
plain taskgroup translation, and remaining unsupported cases.
Commit: c8d16e2a6afb915808d30cee492c55cb17d6a0bb
https://github.com/llvm/llvm-project/commit/c8d16e2a6afb915808d30cee492c55cb17d6a0bb
Author: Sairudra More <sairudra60 at gmail.com>
Date: 2026-06-14 (Sun, 14 Jun 2026)
Changed paths:
M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
A mlir/test/Target/LLVMIR/openmp-taskloop-reduction.mlir
M mlir/test/Target/LLVMIR/openmp-todo.mlir
Log Message:
-----------
[mlir][OpenMP] Translate reductions on taskloop
Add LLVM IR translation for reduction and in_reduction clauses on omp.taskloop.context.
For taskloop reduction, emit the implicit taskgroup reduction setup and map each generated task to runtime-provided private reduction storage through __kmpc_task_reduction_get_th_data. For in_reduction, use the same runtime lookup path with a null descriptor to join an enclosing task reduction context.
Unsupported byref, cleanup, and two-argument initializer forms remain diagnosed.
Add MLIR translation tests for the supported taskloop reduction and in_reduction cases.
Compare: https://github.com/llvm/llvm-project/compare/b5f05dce9169...c8d16e2a6afb
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list