[OpenMP] Add Support for Mapping Names in Libomptarget RTL
authorJoseph Huber <jhuber6@vols.utk.edu>
Tue, 27 Oct 2020 20:12:16 +0000 (16:12 -0400)
committerHuber, Joseph <huberjn@ornl.gov>
Tue, 27 Oct 2020 20:53:05 +0000 (16:53 -0400)
commitd981c7b7581efc3ef378709042100e75da0185a0
tree8bd9d88440bd06715edda9fe3d7ccb8805260a9b
parent2089e762d00cbfdc8db55fd61f55e2f7efa46f67
[OpenMP] Add Support for Mapping Names in Libomptarget RTL

Summary:
This patch adds basic support for priting the source location and names for the
mapped variables. This patch does not support names for custom mappers. This is
based on D89802. The names information currently will be printed out only in
debug mode or using env LIBOMPTARGET_INFO during execution. But the information
is added when availible to the Device and Private data structures. To get the
information out the code must be built with debug symbols on using -g or
-Rpass=openmp-opt

Reviewers: jdoerfert

Differential Revision: https://reviews.llvm.org/D90172
openmp/libomptarget/include/SourceInfo.h [new file with mode: 0644]
openmp/libomptarget/include/omptarget.h
openmp/libomptarget/src/device.cpp
openmp/libomptarget/src/device.h
openmp/libomptarget/src/interface.cpp
openmp/libomptarget/src/omptarget.cpp
openmp/libomptarget/src/private.h
openmp/libomptarget/src/rtl.cpp