[all-commits] [llvm/llvm-project] 06b3f6: [Flang][OpenMP][OMPIRBuilder] Add lowering of Targ...
Sergio Afonso via All-commits
all-commits at lists.llvm.org
Thu May 18 07:20:09 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 06b3f6086c7b46c4caccb868b0f7d09702848222
https://github.com/llvm/llvm-project/commit/06b3f6086c7b46c4caccb868b0f7d09702848222
Author: Sergio Afonso <safonsof at amd.com>
Date: 2023-05-18 (Thu, 18 May 2023)
Changed paths:
M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
M llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
A mlir/test/Target/LLVMIR/omptarget-region-device-llvm.mlir
Log Message:
-----------
[Flang][OpenMP][OMPIRBuilder] Add lowering of TargetOp for device codegen
This patch adds support in the `OpenMPIRBuilder` for generating working
device code for OpenMP target regions. It generates and handles the
result of a call to `__kmpc_target_init()` at the beginning of the
function resulting from outlining each target region, and it also
generates the matching `__kmpc_target_deinit()` call before returning.
It relies on the implementation of target region outlining for host
codegen to handle the production of the new function and the lowering of
its body based on the contents of the associated target region.
Depends on D147172
Differential Revision: https://reviews.llvm.org/D147940
More information about the All-commits
mailing list