[MLIR][OpenMP] Added omp.atomic.update
authorShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Thu, 9 Dec 2021 05:35:55 +0000 (11:05 +0530)
committerShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Thu, 9 Dec 2021 09:51:24 +0000 (15:21 +0530)
commitd82c1f4e4b72e3f90476bda9341b2a5cbff389b9
tree787ac36357718fc01858c601bf7f8e343253170c
parent120d44d1a00b12b79057420eb1d89277522348b1
[MLIR][OpenMP] Added omp.atomic.update

This patch supports the atomic construct (update) following section 2.17.7 of OpenMP 5.0 standard. Also added tests and verifier for the same.

Reviewed By: kiranchandramohan, peixin

Differential Revision: https://reviews.llvm.org/D112982
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
mlir/test/Dialect/OpenMP/invalid.mlir
mlir/test/Dialect/OpenMP/ops.mlir