Skip to content

Commit 48cd8b5

Browse files
committed
[NFC][OpenMP][libomptarget] Remove unnecessary AsyncInfoWrapperTy parameter
1 parent 478bd07 commit 48cd8b5

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,8 @@ Error GenericKernelTy::launch(GenericDeviceTy &GenericDevice, void **ArgPtrs,
242242
llvm::SmallVector<void *, 16> Args;
243243
llvm::SmallVector<void *, 16> Ptrs;
244244

245-
void *KernelArgsPtr =
246-
prepareArgs(GenericDevice, ArgPtrs, ArgOffsets, KernelArgs.NumArgs, Args,
247-
Ptrs, AsyncInfoWrapper);
245+
void *KernelArgsPtr = prepareArgs(GenericDevice, ArgPtrs, ArgOffsets,
246+
KernelArgs.NumArgs, Args, Ptrs);
248247

249248
uint32_t NumThreads = getNumThreads(GenericDevice, KernelArgs.ThreadLimit);
250249
uint64_t NumBlocks = getNumBlocks(GenericDevice, KernelArgs.NumTeams,
@@ -262,8 +261,7 @@ void *GenericKernelTy::prepareArgs(GenericDeviceTy &GenericDevice,
262261
void **ArgPtrs, ptrdiff_t *ArgOffsets,
263262
int32_t NumArgs,
264263
llvm::SmallVectorImpl<void *> &Args,
265-
llvm::SmallVectorImpl<void *> &Ptrs,
266-
AsyncInfoWrapperTy &AsyncInfoWrapper) const {
264+
llvm::SmallVectorImpl<void *> &Ptrs) const {
267265
Args.resize(NumArgs);
268266
Ptrs.resize(NumArgs);
269267

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,7 @@ struct GenericKernelTy {
227227
void *prepareArgs(GenericDeviceTy &GenericDevice, void **ArgPtrs,
228228
ptrdiff_t *ArgOffsets, int32_t NumArgs,
229229
llvm::SmallVectorImpl<void *> &Args,
230-
llvm::SmallVectorImpl<void *> &Ptrs,
231-
AsyncInfoWrapperTy &AsyncInfoWrapper) const;
230+
llvm::SmallVectorImpl<void *> &Ptrs) const;
232231

233232
/// Get the default number of threads and blocks for the kernel.
234233
virtual uint32_t getDefaultNumThreads(GenericDeviceTy &Device) const = 0;

0 commit comments

Comments
 (0)