[mlir][OpenMP] Add checks and tests for hint clause and fix empty hint
authorShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Thu, 21 Apr 2022 01:22:38 +0000 (06:52 +0530)
committerShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Thu, 21 Apr 2022 02:01:03 +0000 (07:31 +0530)
commit88bb2521b0063f4b1569fd483cb0bf223f839d33
tree4188108005aa29b718abbb06f5d032ec8aa86ff2
parent7895c873673569359ee6dd4396e9e1d4a82abf56
[mlir][OpenMP] Add checks and tests for hint clause and fix empty hint

This patch handles empty hint value for critical and atomic constructs.

This also adds checks and tests for hint clause on atomic constructs.

Reviewed By: peixin, kiranchandramohan, NimishMishra

Differential Revision: https://reviews.llvm.org/D123186
flang/test/Lower/OpenMP/critical.f90
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
mlir/test/Target/LLVMIR/openmp-llvm.mlir