[all-commits] [llvm/llvm-project] e73e45: [mlir][OpenMP] Translate task_reduction on taskgroup
Sairudra More via All-commits
all-commits at lists.llvm.org
Tue Jun 16 00:26:35 PDT 2026
Branch: refs/heads/users/saieiei/taskloop-reduction
Home: https://github.com/llvm/llvm-project
Commit: e73e4596f2b6d85a7791b4599426df875069bc72
https://github.com/llvm/llvm-project/commit/e73e4596f2b6d85a7791b4599426df875069bc72
Author: saieiei <sairudra60 at gmail.com>
Date: 2026-06-16 (Tue, 16 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: 95cc633fc8a1baf83797385501a5407e87aa295e
https://github.com/llvm/llvm-project/commit/95cc633fc8a1baf83797385501a5407e87aa295e
Author: Sairudra More <sairudra60 at gmail.com>
Date: 2026-06-16 (Tue, 16 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/c8d16e2a6afb...95cc633fc8a1
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