[mlir][OpenMP] Added omp.atomic.read lowering
authorShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Tue, 7 Dec 2021 04:57:40 +0000 (10:27 +0530)
committerShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Tue, 7 Dec 2021 05:47:30 +0000 (11:17 +0530)
commit31cf42bd9a71c53c7ddc6f0e3ec41fcea24f2f7c
treeb65a3328f1b546f7fef5500d95b71f7527c71eac
parentd8731bfc93c2946de6d1e2242cea25d0a76aeb85
[mlir][OpenMP] Added omp.atomic.read lowering

This patch adds lowering from omp.atomic.read to LLVM IR along with the
memory ordering clause. Tests for the same are also added.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D115134
mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
mlir/test/Target/LLVMIR/openmp-llvm.mlir