[all-commits] [llvm/llvm-project] 875074: [OpenMP][MLIR] Conversion pattern for OpenMP to LLVM

kiranchandramohan via All-commits all-commits at lists.llvm.org
Thu Aug 27 11:43:34 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 875074c8a93d71b3e246da4bae983ec7524f4f28
      https://github.com/llvm/llvm-project/commit/875074c8a93d71b3e246da4bae983ec7524f4f28
  Author: Kiran Chandramohan <kiran.chandramohan at arm.com>
  Date:   2020-08-27 (Thu, 27 Aug 2020)

  Changed paths:
    A mlir/include/mlir/Conversion/OpenMPToLLVM/ConvertOpenMPToLLVM.h
    M mlir/include/mlir/Conversion/Passes.h
    M mlir/include/mlir/Conversion/Passes.td
    M mlir/lib/Conversion/CMakeLists.txt
    A mlir/lib/Conversion/OpenMPToLLVM/CMakeLists.txt
    A mlir/lib/Conversion/OpenMPToLLVM/OpenMPToLLVM.cpp
    A mlir/test/Conversion/OpenMPToLLVM/convert-to-llvmir.mlir

  Log Message:
  -----------
  [OpenMP][MLIR] Conversion pattern for OpenMP to LLVM

Adding a conversion pattern for the parallel Operation. This will
help the conversion of parallel operation with standard dialect to
parallel operation with llvm dialect. The type conversion of the block
arguments in a parallel region are controlled by the pattern for the
parallel Operation. Without this pattern, a parallel Operation with
block arguments cannot be converted from standard to LLVM dialect.
Other OpenMP operations without regions are marked as legal. When
translation of OpenMP operations with regions are added then patterns
for these operations can also be added.
Also uses all the standard to llvm patterns. Patterns of other dialects
can be added later if needed.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D86273




More information about the All-commits mailing list