[MLIR] Support for taskwait and taskyield operations, and translating the same to...
authorKiran Kumar T P <kirankumartp@gmail.com>
Fri, 10 Apr 2020 07:41:04 +0000 (07:41 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Fri, 10 Apr 2020 07:42:34 +0000 (07:42 +0000)
commit7ecee63e719aea7fe3a6764e535cb865669c2fd5
tree160931fddce41c88c6e107eda64b71fe760703e4
parent0445c64998d14b81f0d3a3182011fc5eae47fa71
[MLIR] Support for taskwait and taskyield operations, and translating the same to LLVM IR

This patch adds support for taskwait and taskyield operations in OpenMP dialect and translation of the these constructs to LLVM IR. The OpenMP IRBuilder is used for this translation.
The patch includes code changes and a testcase modifications.

Differential Revision: https://reviews.llvm.org/D77634
mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
mlir/test/Dialect/OpenMP/ops.mlir
mlir/test/Target/openmp-llvm.mlir