[mlir][OpenMP] Add omp.single
authorShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Wed, 23 Mar 2022 10:11:09 +0000 (15:41 +0530)
committerShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Wed, 23 Mar 2022 11:15:27 +0000 (16:45 +0530)
commit11ed2d4acd211bf0ff13078fcc907733205bf147
treed71a5529482b2923ac7aaf03dcacfab5b7acdfb9
parent22548032be7646569a5eb8c39fa03f227a494062
[mlir][OpenMP] Add omp.single

This patch adds omp.single according to Section 2.8.2 of OpenMP 5.0.

Also added tests for the same.

Reviewed By: peixin

Differential Revision: https://reviews.llvm.org/D122288

Co-authored-by: Kiran Kumar T P <kirankumar.tp@amd.com>
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