[OpenMPIRBuilder] Add createOffloadMaptypes and createOffloadMapnames functions
authorValentin Clement <clementval@gmail.com>
Mon, 3 May 2021 19:42:19 +0000 (15:42 -0400)
committerclementval <clementval@gmail.com>
Mon, 3 May 2021 19:42:32 +0000 (15:42 -0400)
commit63f8226f259a03d7a56403be496724b77314e19a
tree21e44b39c3fbcf1172193926f939e17248a40214
parent753185031d939711f8733639a77a6fdc3bdbad22
[OpenMPIRBuilder] Add createOffloadMaptypes and createOffloadMapnames functions

Add function to create the offload_maptypes and the offload_mapnames globals. These two functions
are used in clang. They will be used in the Flang/MLIR lowering as well.

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D101503
clang/lib/CodeGen/CGOpenMPRuntime.cpp
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp