[all-commits] [llvm/llvm-project] d9067d: Lowering of OpenMP Parallel operation to LLVM IR 1/n

kiranchandramohan via All-commits all-commits at lists.llvm.org
Mon Jul 13 16:00:05 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d9067dca7ba7cda97a86ec22106e06ffc700ecbf
      https://github.com/llvm/llvm-project/commit/d9067dca7ba7cda97a86ec22106e06ffc700ecbf
  Author: Kiran Chandramohan <kiran.chandramohan at arm.com>
  Date:   2020-07-13 (Mon, 13 Jul 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
    M mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
    M mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
    M mlir/test/Target/openmp-llvm.mlir

  Log Message:
  -----------
  Lowering of OpenMP Parallel operation to LLVM IR 1/n

This patch introduces lowering of the OpenMP parallel operation to LLVM
IR using the OpenMPIRBuilder.

Functions topologicalSort and connectPhiNodes are generalised so that
they work with operations also. connectPhiNodes is also made static.

Lowering works for a parallel region with multiple blocks. Clauses and
arguments of the OpenMP operation are not handled.

Reviewed By: rriddle, anchu-rajendran

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




More information about the All-commits mailing list