[OpenMP][Flang][MLIR] Add lowering of TargetOp for host codegen to LLVM-IR
authorJan Sjodin <jan_sjodin@yahoo.com>
Mon, 3 Apr 2023 14:46:21 +0000 (10:46 -0400)
committerJan Sjodin <jan_sjodin@yahoo.com>
Wed, 26 Apr 2023 16:51:31 +0000 (12:51 -0400)
commitd3f9388ffb889d2ef512a17b9c4d37d09f03c693
tree2e032f1e898af2327e710f145437e3f64cb58048
parent17df2021a51bcc8a59129a4498bb67e4417c1697
[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
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
mlir/lib/Target/LLVMIR/CMakeLists.txt
mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
mlir/test/Target/LLVMIR/omptarget-llvm.mlir