[MLIR][OpenMP] Add support for depend clause
authorPrabhdeep Singh Soni <prabhdeep.singh.soni3@huawei.com>
Fri, 27 Jan 2023 14:53:02 +0000 (09:53 -0500)
committerPrabhdeep Singh Soni <prabhdeep.singh.soni3@huawei.com>
Tue, 14 Feb 2023 19:18:16 +0000 (14:18 -0500)
commit179db7efe567ed76e36b6c4d69605b426d8f70ca
treec8a391d470a45a149963156e4704fbc0506c7a61
parent361d5a7a9f14ed002004b1953434a37ccb138cae
[MLIR][OpenMP] Add support for depend clause

This patch adds support for the OpenMP 4.0 depend clause (in, out,
inout) of the task construct to the definition of the OpenMP MLIR
dialect and translation from MLIR to LLVM IR using OMPIRBuilder.

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D142730
flang/lib/Lower/OpenMP.cpp
mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
mlir/lib/Conversion/OpenMPToLLVM/OpenMPToLLVM.cpp
mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
mlir/test/Conversion/OpenMPToLLVM/convert-to-llvmir.mlir
mlir/test/Dialect/OpenMP/invalid.mlir
mlir/test/Dialect/OpenMP/ops.mlir
mlir/test/Target/LLVMIR/openmp-llvm.mlir