[MLIR][OpenMP] Add support for basic SIMD construct
authorArnamoy Bhattacharyya <arnamoy.bhattacharyya@huawei.com>
Tue, 15 Mar 2022 13:41:04 +0000 (09:41 -0400)
committerArnamoy Bhattacharyya <arnamoy.bhattacharyya@huawei.com>
Tue, 15 Mar 2022 13:41:04 +0000 (09:41 -0400)
commit0e9198c3e95adced7213999dcd14daed4acfd16c
treeb182a48c784e7bbf294eb53d8e1767572f9be156
parente168513aed8fb07e096320a6a207d0fc721aaff5
[MLIR][OpenMP]  Add support for basic SIMD construct

Patch adds a new operation for the SIMD construct.  The op is designed to be very similar to the existing `wsloop` operation, so that the `CanonicalLoopInfo` of `OpenMPIRBuilder` can be used.

Reviewed By: shraiysh

Differential Revision: https://reviews.llvm.org/D118065
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/invalid.mlir
mlir/test/Dialect/OpenMP/ops.mlir
mlir/test/Target/LLVMIR/openmp-llvm.mlir