[OpenMP] Add thread ID function into new RTL
authorJoseph Huber <jhuber6@vols.utk.edu>
Tue, 21 Sep 2021 19:32:41 +0000 (15:32 -0400)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 21 Sep 2021 21:43:50 +0000 (17:43 -0400)
commite95731cca7ecf5be22ea67a273cb19ba2c14d54c
treeb726ad5e1206157a45e48c3f228f2360c94245b4
parente1ed02181ffcfea7de952d252a5e25953c822251
[OpenMP] Add thread ID function into new RTL

The new device runtime library currently lacks the
`kmpc_get_hardware_thread_id_in_block` function which is currently used
when doing the SPMDzation optimization. This call would be introduced
through the optimization and then cause a linking error because it was
not present. This patch adds support for this runtime call.

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D110195
openmp/libomptarget/DeviceRTL/include/Interface.h
openmp/libomptarget/DeviceRTL/src/Mapping.cpp