[mlir][OpenMP] Remove clauses that are not being handled
authorShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Fri, 18 Feb 2022 17:47:34 +0000 (23:17 +0530)
committerShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Fri, 18 Feb 2022 19:43:05 +0000 (01:13 +0530)
commit5ee500acbbe7eadc1b46a289c8f7fc86a4be4af5
treec5a75360f1ff6a46af0371d1f445bfca25741960
parent3a6be124cc01191ec52192017791bb04a6c7295a
[mlir][OpenMP] Remove clauses that are not being handled

This patch removes the following clauses from OpenMP Dialect:

 - private
 - firstprivate
 - lastprivate
 - shared
 - default
 - copyin
 - copyprivate

The privatization clauses are being handled in the flang frontend. The
data copying clauses are not being handled anywhere for now. Once
we have a better picture of how to handle these clauses in OpenMP
Dialect, we can add these. For the time being, removing unneeded
clauses.

For detailed discussion about this refer to [[ https://discourse.llvm.org/t/rfc-privatisation-in-openmp-dialect/3526 | Privatisation in OpenMP dialect ]]

Reviewed By: kiranchandramohan, clementval

Differential Revision: https://reviews.llvm.org/D120029
flang/lib/Lower/OpenMP.cpp
mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
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