[MLIR][OpenMP] Add omp.wsloop operation
authorDavid Truby <david.truby@arm.com>
Mon, 16 Nov 2020 13:39:11 +0000 (13:39 +0000)
committerKiran Chandramohan <kiran.chandramohan@arm.com>
Mon, 16 Nov 2020 15:24:57 +0000 (15:24 +0000)
commit843525075b87b367f3d18754ef0a3e35dc2ed162
tree01fa3d66a2ec9ae88c2e59b76757ef936b22ca3d
parenta598c08ac858dd7780aeb8e85a801b48333e0a07
[MLIR][OpenMP] Add omp.wsloop operation

This adds a simple definition of a "workshare loop" operation for
the OpenMP MLIR dialect, excluding the "reduction" and "allocate"
clauses and without a custom parser and pretty printer.

The schedule clause also does not yet accept the modifiers that are
permitted in OpenMP 5.0.

Co-authored-by: Kiran Chandramohan <kiran.chandramohan@arm.com>
Reviewed By: ftynse, clementval

Differential Revision: https://reviews.llvm.org/D86071
llvm/include/llvm/Frontend/OpenMP/OMP.td
mlir/include/mlir/Dialect/OpenMP/OpenMPDialect.h
mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
mlir/test/Dialect/OpenMP/ops.mlir