[mlir][OpenMP] Added assemblyFormat for atomic and critical operations
authorShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Wed, 2 Mar 2022 05:23:53 +0000 (10:53 +0530)
committerShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Wed, 2 Mar 2022 05:52:09 +0000 (11:22 +0530)
commitd2f0fe23d2375da1b8caf510cc3c481398694101
tree0a7b3a0353247940e62033368016528a57774a6d
parent8b4ab01c38343753fbd7f04f02c2303645735d9a
[mlir][OpenMP] Added assemblyFormat for atomic and critical operations

This patch adds assemblyFormat for `omp.critical.declare`, `omp.atomic.read`,
`omp.atomic.write`, `omp.atomic.update` and `omp.atomic.capture`.

Also removing those clauses from `parseClauses` that aren't needed
anymore, thanks to the new assemblyFormats.

Reviewed By: NimishMishra, rriddle

Differential Revision: https://reviews.llvm.org/D120248
mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
mlir/test/Dialect/OpenMP/invalid.mlir
mlir/test/Dialect/OpenMP/ops.mlir