[OpenMP] Pass mapping names to add components in a user defined mapper
authorJoseph Huber <jhuber6@vols.utk.edu>
Wed, 31 Mar 2021 20:00:38 +0000 (16:00 -0400)
committerHuber, Joseph <huberjn@ornl.gov>
Thu, 1 Apr 2021 19:51:03 +0000 (15:51 -0400)
commit69ca50bd7dfdb54aab8b0b262df635e25cf6baf0
treeec7d1a758bb7b5e2240d224770a4183b2aaf2ef3
parentdbbc95e3e5aa09928ed4531f7ca01dd979cabab7
[OpenMP] Pass mapping names to add components in a user defined mapper

Summary:
Currently the mapping names are not passed to the mapper components that set up
the array region. This means array mappings will not have their names availible
in the runtime. This patch fixes this by passing the argument name to the region
correctly. This means that the mapped variable's name will be the declared
mapper that placed it on the device.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D99681
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/lib/CodeGen/CGOpenMPRuntime.h
clang/test/OpenMP/target_map_names.cpp