[Openmp-commits] [PATCH] D139263: [OpenMP][libomptarget] Add hasQueue() function in NextGen plugin's AsyncInfoWrapperTy

Kevin Sala Penad├ęs via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Sat Dec 3 16:46:29 PST 2022

kevinsala created this revision.
kevinsala added reviewers: jdoerfert, jhuber6, tianshilei1992.
kevinsala added a project: OpenMP.
Herald added subscribers: kosarev, guansong, tpr, yaxunl.
Herald added a project: All.
kevinsala requested review of this revision.
Herald added subscribers: openmp-commits, sstefan1.

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

  rG LLVM Github Monorepo



Index: openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
--- openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
+++ openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
@@ -65,6 +65,9 @@
     return reinterpret_cast<Ty &>(AsyncInfoPtr->Queue);
+  /// Indicate whether there is queue.
+  bool hasQueue() const { return (AsyncInfoPtr->Queue != nullptr); }
   Error &Err;
   ErrorAsOutParameter ErrOutParam;

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139263.479880.patch
Type: text/x-patch
Size: 569 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20221204/e6574f8b/attachment.bin>

More information about the Openmp-commits mailing list