[mlir][OpenMP]Support for modifiers in workshare loops
authorMats Petersson <mats.petersson@arm.com>
Tue, 6 Apr 2021 10:20:49 +0000 (11:20 +0100)
committerMats Petersson <mats.petersson@arm.com>
Fri, 22 Oct 2021 13:19:33 +0000 (14:19 +0100)
commit3f00e10bddd7bb2bdd14b5cbecd000e6288588bf
tree267b19410e47827c899cfd64964003aca460e892
parent286e98b97ebed4dfed38940d192667f84741fd65
[mlir][OpenMP]Support for modifiers in workshare loops

Pass the modifiers from the Flang parser to FIR/MLIR workshare
loop operation.

Not yet supporting the SIMD modifier, which is a bit more work
than just adding it to the list of modifiers, so will go in a
separate patch.

This adds a new field to the WsLoopOp.

Also add test for dynamic WSLoop, checking that dynamic schedule calls
the init and next functions as expected.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D111053
mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
mlir/test/Dialect/OpenMP/ops.mlir
mlir/test/Target/LLVMIR/openmp-llvm.mlir