[all-commits] [llvm/llvm-project] e6c5e6: [MLIR, OpenMP] Lowering of parallel operation: proc...

kiranchandramohan via All-commits all-commits at lists.llvm.org
Wed Aug 12 00:04:14 PDT 2020


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

  Changed paths:
    M llvm/include/llvm/Frontend/Directive/DirectiveBase.td
    M llvm/include/llvm/Frontend/OpenMP/OMP.td
    M llvm/include/llvm/Frontend/OpenMP/OMPConstants.h
    A llvm/include/llvm/TableGen/DirectiveEmitter.h
    M llvm/test/TableGen/directive1.td
    M llvm/utils/TableGen/DirectiveEmitter.cpp
    M mlir/include/mlir/Dialect/OpenMP/CMakeLists.txt
    M mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
    M mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
    M mlir/test/Target/openmp-llvm.mlir
    M mlir/tools/mlir-tblgen/CMakeLists.txt
    A mlir/tools/mlir-tblgen/OpenMPCommonGen.cpp

  Log Message:
  -----------
  [MLIR,OpenMP] Lowering of parallel operation: proc_bind clause 2/n

This patch adds the translation of the proc_bind clause in a
parallel operation.

The values that can be specified for the proc_bind clause are
specified in the OMP.td tablegen file in the llvm/Frontend/OpenMP
directory. From this single source of truth enumeration for
proc_bind is generated in llvm and mlir (used in specification of
the parallel Operation in the OpenMP dialect). A function to return
the enum value from the string representation is also generated.
A new header file (DirectiveEmitter.h) containing definitions of
classes directive, clause, clauseval etc is created so that it can
be used in mlir as well.

Reviewers: clementval, jdoerfert, DavidTruby

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




More information about the All-commits mailing list