[OpenMP] Refactored the function `DeviceTy::data_exchange`
authorShilei Tian <tianshilei1992@gmail.com>
Wed, 19 Aug 2020 20:07:58 +0000 (16:07 -0400)
committerShilei Tian <tianshilei1992@gmail.com>
Wed, 19 Aug 2020 20:08:14 +0000 (16:08 -0400)
commit83c3d07994c4cd24b9548362d03290af2a9483b0
tree9cb57cb20a0c6ad30f54239e4b280d0b119e28ef
parent9937872c02ba1b088a27a880301b6d816d971d16
[OpenMP] Refactored the function `DeviceTy::data_exchange`

This patch contains the following changes:
1. Renamed the function `DeviceTy::data_exchange` to `DeviceTy::dataExchange`;
2. Changed the second argument `DeviceTy DstDev` to `DeviceTy &DstDev`;
3. Renamed the last argument.

Reviewed By: ye-luo

Differential Revision: https://reviews.llvm.org/D86238
openmp/libomptarget/src/api.cpp
openmp/libomptarget/src/device.cpp
openmp/libomptarget/src/device.h