[mlir] Add translation of omp.wsloop to LLVM IR
authorAlex Zinenko <zinenko@google.com>
Tue, 8 Dec 2020 15:45:19 +0000 (16:45 +0100)
committerAlex Zinenko <zinenko@google.com>
Wed, 23 Dec 2020 10:52:28 +0000 (11:52 +0100)
commit32a884c9c52c1216d57835e557233b238d601726
tree5f21349d3113ca4df50c7c3a74c7661901b7b586
parent8451d4872ed70d307e21bc437d51ecf9be0cdd08
[mlir] Add translation of omp.wsloop to LLVM IR

Introduce a translation of OpenMP workshare loop construct to LLVM IR. This is
a minimalist version to enable the pipeline and currently only supports static
loop schedule (default in the specification) on non-collapsed loops. Other
features will be added on per-need basis.

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D92055
mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
mlir/test/Target/openmp-llvm.mlir