[OpenMP][NFC] Pass a DeviceTy, not the device number to `target`
authorJohannes Doerfert <johannes@jdoerfert.de>
Wed, 10 Feb 2021 16:50:09 +0000 (10:50 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Tue, 16 Feb 2021 21:37:51 +0000 (15:37 -0600)
commit44f3022cdf01b26d46ebff3c26a5e572aee2acdf
tree638dcd331d0867e74693881ade059e888859b695
parentea9395716ecc9923beb74b3af3df9f673364a76e
[OpenMP][NFC] Pass a DeviceTy, not the device number to `target`

This unifies the API of `target` relative to `targetUpdateData` and
such.

Reviewed By: tianshilei1992, grokos

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