[OpenMP] Move synchronization into `__tgt_async_info`
authorJohannes Doerfert <johannes@jdoerfert.de>
Wed, 10 Feb 2021 17:06:00 +0000 (11:06 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Tue, 16 Feb 2021 21:38:01 +0000 (15:38 -0600)
commita2fc0d34db72315f05b96681013e1e16d4df41c7
treed54ed73d7ea603631b58c0b9bea83cccc3013399
parent942728763b8e8a6ec440d29f0f8608a1ac1f9cee
[OpenMP] Move synchronization into `__tgt_async_info`

The AsyncInfo should be passed everywhere and it should offer a way to
ensure synchronization, given a libomptarget Device.

This replaces D96431.

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D96438
openmp/libomptarget/include/omptarget.h
openmp/libomptarget/src/omptarget.cpp
openmp/libomptarget/src/private.h