[MLIR, OpenMP] Translation of OpenMP barrier construct to LLVM IR
authorKiran Chandramohan <kiran.chandramohan@arm.com>
Wed, 4 Mar 2020 23:36:21 +0000 (23:36 +0000)
committerKiran Chandramohan <kiran.chandramohan@arm.com>
Thu, 5 Mar 2020 11:59:36 +0000 (11:59 +0000)
commit92a295eb399508b7d8dd577950cd33426ca5ae91
treea024b16938b20bdf9b3cbf5dff5fdf0f59503a17
parent8975aa6ea8172963d6532caa8ed2a6f6e0074a02
[MLIR, OpenMP] Translation of OpenMP barrier construct to LLVM IR

Summary:
This patch adds support for translation of the OpenMP barrier construct to LLVM
IR. The OpenMP IRBuilder is used for this translation. In this patch the code
for translation is added to the existing LLVM dialect translation to LLVM IR.

The patch includes code changes and a testcase.

Reviewers: jdoerfert, nicolasvasilache, ftynse, rriddle, mehdi_amini

Reviewed By: ftynse, rriddle, mehdi_amini

Differential Revision: https://reviews.llvm.org/D72962
mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
mlir/lib/Dialect/LLVMIR/CMakeLists.txt
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
mlir/test/Target/openmp-llvm.mlir [new file with mode: 0644]