[mlir][OpenMP] Added ReductionClauseInterface
authorShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Mon, 28 Mar 2022 08:06:32 +0000 (13:36 +0530)
committerShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Mon, 28 Mar 2022 08:54:28 +0000 (14:24 +0530)
commitfcbf00f098b234c205b1ee22b982e7e575d75f14
treef3719eb562f1c340c7219c1a9725a71affe8c7d5
parent1f52d02cebf1fd7a8777fcc925837ffabcf73681
[mlir][OpenMP] Added ReductionClauseInterface

This patch adds the ReductionClauseInterface and also adds reduction
support for `omp.parallel` operation.

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D122402
flang/lib/Lower/OpenMP.cpp
mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
mlir/include/mlir/Dialect/OpenMP/OpenMPOpsInterfaces.td
mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
mlir/test/Dialect/OpenMP/ops.mlir