[mlir][OpenMP] omp.sections and omp.section lowering to LLVM IR
authorShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Wed, 15 Dec 2021 09:53:30 +0000 (15:23 +0530)
committerShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Wed, 15 Dec 2021 10:11:12 +0000 (15:41 +0530)
commit3425b1bcb4bf6eee57a18f872511403c2d26d166
tree9e07ef163654f162fbe19858a214395550686ff1
parent529833377ccdf4381f8bc9961bfa96ec4f5e2eed
[mlir][OpenMP] omp.sections and omp.section lowering to LLVM IR

This patch adds lowering from omp.sections and omp.section (simple lowering along with the nowait clause) to LLVM IR.
Tests for the same are also added.

Reviewed By: ftynse, kiranchandramohan

Differential Revision: https://reviews.llvm.org/D115030
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
mlir/test/Target/LLVMIR/openmp-llvm.mlir