[MLIR][OpenMP] Added omp.atomic.read and omp.atomic.write
authorShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Wed, 27 Oct 2021 06:48:00 +0000 (12:18 +0530)
committerShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Wed, 27 Oct 2021 08:35:44 +0000 (14:05 +0530)
commit9fb52cb3f1235639a5a357fb5de18e1aeeb5b5f4
treee2eeca0d285f25910e1342269a7889501724d981
parente3c6090e597685c23e9d2aac27d45c5a35b2f9bd
[MLIR][OpenMP] Added omp.atomic.read and omp.atomic.write

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

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D111992
clang/lib/CodeGen/CGStmtOpenMP.cpp
flang/lib/Semantics/check-omp-structure.cpp
llvm/include/llvm/Frontend/OpenMP/OMP.td
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