File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed
offload/plugins-nextgen/common Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -270,12 +270,6 @@ struct GenericKernelTy {
270
270
// / Get the kernel name.
271
271
const char *getName () const { return Name; }
272
272
273
- // / Return true if this kernel is a constructor or destructor.
274
- bool isCtorOrDtor () const {
275
- // TODO: This is not a great solution and should be revisited.
276
- return StringRef (Name).ends_with (" tor" );
277
- }
278
-
279
273
// / Get the kernel image.
280
274
DeviceImageTy &getImage () const {
281
275
assert (ImagePtr && " Kernel is not initialized!" );
Original file line number Diff line number Diff line change @@ -470,7 +470,7 @@ GenericKernelTy::getKernelLaunchEnvironment(
470
470
// Ctor/Dtor have no arguments, replaying uses the original kernel launch
471
471
// environment. Older versions of the compiler do not generate a kernel
472
472
// launch environment.
473
- if (isCtorOrDtor () || RecordReplay.isReplaying () ||
473
+ if (RecordReplay.isReplaying () ||
474
474
Version < OMP_KERNEL_ARG_MIN_VERSION_WITH_DYN_PTR)
475
475
return nullptr ;
476
476
@@ -579,9 +579,6 @@ void *GenericKernelTy::prepareArgs(
579
579
uint32_t &NumArgs, llvm::SmallVectorImpl<void *> &Args,
580
580
llvm::SmallVectorImpl<void *> &Ptrs,
581
581
KernelLaunchEnvironmentTy *KernelLaunchEnvironment) const {
582
- if (isCtorOrDtor ())
583
- return nullptr ;
584
-
585
582
uint32_t KLEOffset = !!KernelLaunchEnvironment;
586
583
NumArgs += KLEOffset;
587
584
You can’t perform that action at this time.
0 commit comments