[mlir][OpenMP] Added omp.atomic.capture operation
authorShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Mon, 24 Jan 2022 13:12:39 +0000 (18:42 +0530)
committerShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Tue, 25 Jan 2022 06:55:54 +0000 (12:25 +0530)
commit320dc8c4df74ccce318c2c9bdb9b2937438711ac
tree73baf0e4acdb926e71499eb9952f2d8d41e8d756
parentf6984b299afcbeddefe53db7ee1ce62e5d68cc4f
[mlir][OpenMP] Added omp.atomic.capture operation

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

Reviewed By: peixin, kiranchandramohan

Differential Revision: https://reviews.llvm.org/D115851
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