summaryrefslogtreecommitdiff
path: root/openmp/libomptarget
diff options
context:
space:
mode:
authorKevin Sala <kevin.sala@bsc.es>2023-03-28 17:22:33 +0200
committerKevin Sala <kevin.sala@bsc.es>2023-03-28 17:28:12 +0200
commit48cd8b54d10e87ca90dfe1f723c4ed9e4b8ef32e (patch)
tree7138471de807db896f32587d4302c6c41e99cd6a /openmp/libomptarget
parent478bd0735fc094d3af37e9791df5118a402ae7a7 (diff)
downloadllvm-48cd8b54d10e87ca90dfe1f723c4ed9e4b8ef32e.tar.gz
[NFC][OpenMP][libomptarget] Remove unnecessary AsyncInfoWrapperTy parameter
Diffstat (limited to 'openmp/libomptarget')
-rw-r--r--openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp8
-rw-r--r--openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h3
2 files changed, 4 insertions, 7 deletions
diff --git a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
index 0b90d250b762..fabc0f592cb0 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, ptrdiff_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 4cc97485054c..98427c483c86 100644
--- a/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
+++ b/openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
@@ -227,8 +227,7 @@ private:
void *prepareArgs(GenericDeviceTy &GenericDevice, void **ArgPtrs,
ptrdiff_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;