[OpenMP] Refactored the function `target`
authorShilei Tian <tianshilei1992@gmail.com>
Fri, 31 Jul 2020 01:05:30 +0000 (21:05 -0400)
committerShilei Tian <tianshilei1992@gmail.com>
Fri, 31 Jul 2020 01:05:55 +0000 (21:05 -0400)
commit8218eee269c382472b9809cb3cce7a98eed7a31b
tree6ca8f2c6a64a13bc03d97bac82d1b98ea4e9ec2b
parentaa77232a63e3f7ca2f0077434d46e0f269499eae
[OpenMP] Refactored the function `target`

Refactored the function `target` to make preparation for fixing the
issue of ahead-of-time device memory deallocation.

Reviewed By: ye-luo

Differential Revision: https://reviews.llvm.org/D84816
openmp/libomptarget/src/omptarget.cpp