[NFC][OpenMP] Prepare amdgpu plugin for asynchronous implementation of target region...
authorCarlo Bertolli <carlo.bertolli@amd.com>
Tue, 7 Dec 2021 21:00:11 +0000 (21:00 +0000)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Tue, 7 Dec 2021 21:02:45 +0000 (21:02 +0000)
commitd9b1d827d2e9ae135901b6eccf25a05ef49f38af
treee831ef7c584fea122b6436618406c9423d78570f
parentf65be726ab50ff13ccafd2f134599edb33cb1e7e
[NFC][OpenMP] Prepare amdgpu plugin for asynchronous implementation of target region launch

At present, amdgpu plugin merges both asynchronous and synchronous kernel launch implementations into a single synchronous version.
This patch prepares the plugin for asynchronous implementation by:
- Privatizing actual kernel launch code (valid in both cases) into an anonymous namespace base function

Actual separation of kernel launch code (async vs sync) is a following patch.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D115267
openmp/libomptarget/plugins/amdgpu/src/rtl.cpp