[OpenMP][libomptarget] Add hasQueue() function in NextGen plugin's AsyncInfoWrapperTy

This patch prepares the PluginInterface for the new AMDGPU NextGen plugin.

Differential Revision: https://reviews.llvm.org/D139263
This commit is contained in:
Kevin Sala 2022-12-04 01:40:39 +01:00
parent fb84dad58b
commit 5acee7dd47
1 changed files with 3 additions and 0 deletions

View File

@ -65,6 +65,9 @@ struct AsyncInfoWrapperTy {
return reinterpret_cast<Ty &>(AsyncInfoPtr->Queue);
}
/// Indicate whether there is queue.
bool hasQueue() const { return (AsyncInfoPtr->Queue != nullptr); }
private:
Error &Err;
ErrorAsOutParameter ErrOutParam;