[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
Sun Dec 4 04:26:08 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG5acee7dd4789: [OpenMP][libomptarget] Add hasQueue() function in NextGen plugin's… (authored by kevinsala).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139263/new/

https://reviews.llvm.org/D139263

Files:
  openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h


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); }
+
 private:
   Error &Err;
   ErrorAsOutParameter ErrOutParam;


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


More information about the Openmp-commits mailing list