[mlir][OpenMP] Change omp.atomic.update to have generic updates
authorShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Tue, 15 Feb 2022 12:01:31 +0000 (17:31 +0530)
committerShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Tue, 15 Feb 2022 12:28:13 +0000 (17:58 +0530)
commit166713f987b343e65baf25532b3ff48be154c390
tree498407c4662c22323916bdee662ffd2119763d2f
parent73e880fbf17fc4d8dc3fdfec2a18eb26d1804750
[mlir][OpenMP] Change omp.atomic.update to have generic updates

This patch changes the syntax of omp.atomic.update to allow the other
dialects to modify the variable with appropriate operations in the
region.

Reviewed By: ftynse

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