[all-commits] [llvm/llvm-project] d3f938: [OpenMP][Flang][MLIR] Add lowering of TargetOp for...

Jan Sjodin via All-commits all-commits at lists.llvm.org
Wed Apr 26 09:57:37 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d3f9388ffb889d2ef512a17b9c4d37d09f03c693
      https://github.com/llvm/llvm-project/commit/d3f9388ffb889d2ef512a17b9c4d37d09f03c693
  Author: Jan Sjodin <jan_sjodin at yahoo.com>
  Date:   2023-04-26 (Wed, 26 Apr 2023)

  Changed paths:
    M llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
    M mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
    M mlir/lib/Target/LLVMIR/CMakeLists.txt
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
    M mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
    M mlir/test/Target/LLVMIR/omptarget-llvm.mlir

  Log Message:
  -----------
  [OpenMP][Flang][MLIR] Add lowering of TargetOp for host codegen to LLVM-IR

This patch adds lowering of TargetOps for the host. The lowering outlines the
target region function and uses the OpenMPIRBuilder support functions to emit
the function and call. Code generation for offloading will be done in later
patches.

Reviewed By: kiranchandramohan, jdoerfert, agozillon

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




More information about the All-commits mailing list