[all-commits] [llvm/llvm-project] 119545: [mlir] Add conversion from SCF parallel loops to O...
ftynse via All-commits
all-commits at lists.llvm.org
Tue Nov 24 12:13:16 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 119545f4338efacabf99e06eeca965913f6617f2
https://github.com/llvm/llvm-project/commit/119545f4338efacabf99e06eeca965913f6617f2
Author: Alex Zinenko <zinenko at google.com>
Date: 2020-11-24 (Tue, 24 Nov 2020)
Changed paths:
M mlir/include/mlir/Conversion/Passes.h
M mlir/include/mlir/Conversion/Passes.td
A mlir/include/mlir/Conversion/SCFToOpenMP/SCFToOpenMP.h
M mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
M mlir/lib/Conversion/CMakeLists.txt
M mlir/lib/Conversion/PassDetail.h
A mlir/lib/Conversion/SCFToOpenMP/CMakeLists.txt
A mlir/lib/Conversion/SCFToOpenMP/SCFToOpenMP.cpp
M mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
A mlir/test/Conversion/SCFToOpenMP/scf-to-openmp.mlir
Log Message:
-----------
[mlir] Add conversion from SCF parallel loops to OpenMP
Introduce a conversion pass from SCF parallel loops to OpenMP dialect
constructs - parallel region and workshare loop. Loops with reductions are not
supported because the OpenMP dialect cannot model them yet.
The conversion currently targets only one level of parallelism, i.e. only
one top-level `omp.parallel` operation is produced even if there are nested
`scf.parallel` operations that could be mapped to `omp.wsloop`. Nested
parallelism support is left for future work.
Reviewed By: kiranchandramohan
Differential Revision: https://reviews.llvm.org/D91982
More information about the All-commits
mailing list