[libomptarget][nfc] Move GetWarp/LaneId functions into per arch code
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Thu, 5 Mar 2020 17:05:56 +0000 (17:05 +0000)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Thu, 5 Mar 2020 17:05:58 +0000 (17:05 +0000)
commit918a1065be642a3d5f804c95d7971c2d1b96cdf5
treedf631bb5cadbcd9bdffa88928e0eccc75beba44e
parent470f995a517f5dbb53b1f5cd87ca3c9be0b32d79
[libomptarget][nfc] Move GetWarp/LaneId functions into per arch code

Summary:
[libomptarget][nfc] Move GetWarp/LaneId functions into per arch code

No code change for nvptx. Amdgcn currently has two implementations of GetLaneId,
this patch keeps the one a colleague considered to be superior for our ISA.

GetWarpId is currently the same function for amdgcn and nvptx, but I think it's
cleaner to keep it grouped with all the others than to keep it in support.cu.

Reviewers: jdoerfert, grokos, ABataev

Reviewed By: jdoerfert

Subscribers: jvesely, openmp-commits

Tags: #openmp

Differential Revision: https://reviews.llvm.org/D75587
openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.hip
openmp/libomptarget/deviceRTLs/common/src/support.cu
openmp/libomptarget/deviceRTLs/common/support.h
openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h