[OpenMP][OpenMPIRBuilder] Migrate kernel launch code and host fallback code generatio...
authorJan Sjodin <jan_sjodin@yahoo.com>
Thu, 29 Jun 2023 14:41:11 +0000 (10:41 -0400)
committerJan Sjodin <jan_sjodin@yahoo.com>
Fri, 30 Jun 2023 14:40:21 +0000 (10:40 -0400)
commitac65cc1215132b4725ed64b726671867a028e275
tree58b76e6c9564bfa435635f65a4ac6060f3e68a6b
parentbc6096406c5edbbe177a8c1faab5ada7c729ac03
[OpenMP][OpenMPIRBuilder] Migrate kernel launch code and host fallback code generation from Clang to the OpenMPIRBuilder

This patch refactors the code generation that emits the offloading kernel
launch and moves the core portion to the OpenMPIRBuilder so that it can be used
from flang in the future.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D151035
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/lib/CodeGen/CGOpenMPRuntime.h
llvm/include/llvm/Frontend/OpenMP/OMPConstants.h
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp