[OpenMP][Libomptarget] Introduce changes to support remote plugin
authorAtmn <atmndp@gmail.com>
Tue, 26 Jan 2021 19:19:10 +0000 (14:19 -0500)
committerAtmn Patel <atmndp@gmail.com>
Tue, 26 Jan 2021 19:19:27 +0000 (14:19 -0500)
commit683719bc0cc8e12a5f9c06135fc97a13ef414f69
tree67489979d4c65b67049b4b7fe665a0a4848f5d93
parent96f09aa2fb19ca2ab3de642b7d5f76e76afc31c7
[OpenMP][Libomptarget] Introduce changes to support remote plugin

In order to support remote execution, we need to be able to send the
target binary description to the remote host for registration (and
consequent deregistration). To support this, I added these two
optional new functions to the plugin API:
- `__tgt_rtl_register_lib`
- `__tgt_rtl_unregister_lib`

These functions will be called to properly manage the instance of
libomptarget running on the remote host.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D93293
openmp/libomptarget/src/interface.cpp
openmp/libomptarget/src/rtl.cpp
openmp/libomptarget/src/rtl.h