[Openmp-commits] [openmp] 48cd8b5 - [NFC][OpenMP][libomptarget] Remove unnecessary AsyncInfoWrapperTy parameter

Kevin Sala via Openmp-commits openmp-commits at lists.llvm.org
Tue Mar 28 08:28:49 PDT 2023


Author: Kevin Sala
Date: 2023-03-28T17:28:12+02:00
New Revision: 48cd8b54d10e87ca90dfe1f723c4ed9e4b8ef32e

URL: https://github.com/llvm/llvm-project/commit/48cd8b54d10e87ca90dfe1f723c4ed9e4b8ef32e
DIFF: https://github.com/llvm/llvm-project/commit/48cd8b54d10e87ca90dfe1f723c4ed9e4b8ef32e.diff

LOG: [NFC][OpenMP][libomptarget] Remove unnecessary AsyncInfoWrapperTy parameter

Added: 
    

Modified: 
    openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
    openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
index 0b90d250b762b..fabc0f592cb05 100644
--- a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
+++ b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
@@ -242,9 +242,8 @@ Error GenericKernelTy::launch(GenericDeviceTy &GenericDevice, void **ArgPtrs,
   llvm::SmallVector<void *, 16> Args;
   llvm::SmallVector<void *, 16> Ptrs;
 
-  void *KernelArgsPtr =
-      prepareArgs(GenericDevice, ArgPtrs, ArgOffsets, KernelArgs.NumArgs, Args,
-                  Ptrs, AsyncInfoWrapper);
+  void *KernelArgsPtr = prepareArgs(GenericDevice, ArgPtrs, ArgOffsets,
+                                    KernelArgs.NumArgs, Args, Ptrs);
 
   uint32_t NumThreads = getNumThreads(GenericDevice, KernelArgs.ThreadLimit);
   uint64_t NumBlocks = getNumBlocks(GenericDevice, KernelArgs.NumTeams,
@@ -262,8 +261,7 @@ void *GenericKernelTy::prepareArgs(GenericDeviceTy &GenericDevice,
                                    void **ArgPtrs, ptr
diff _t *ArgOffsets,
                                    int32_t NumArgs,
                                    llvm::SmallVectorImpl<void *> &Args,
-                                   llvm::SmallVectorImpl<void *> &Ptrs,
-                                   AsyncInfoWrapperTy &AsyncInfoWrapper) const {
+                                   llvm::SmallVectorImpl<void *> &Ptrs) const {
   Args.resize(NumArgs);
   Ptrs.resize(NumArgs);
 

diff  --git a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
index 4cc97485054c5..98427c483c864 100644
--- a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
+++ b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
@@ -227,8 +227,7 @@ struct GenericKernelTy {
   void *prepareArgs(GenericDeviceTy &GenericDevice, void **ArgPtrs,
                     ptr
diff _t *ArgOffsets, int32_t NumArgs,
                     llvm::SmallVectorImpl<void *> &Args,
-                    llvm::SmallVectorImpl<void *> &Ptrs,
-                    AsyncInfoWrapperTy &AsyncInfoWrapper) const;
+                    llvm::SmallVectorImpl<void *> &Ptrs) const;
 
   /// Get the default number of threads and blocks for the kernel.
   virtual uint32_t getDefaultNumThreads(GenericDeviceTy &Device) const = 0;


        


More information about the Openmp-commits mailing list