File tree Expand file tree Collapse file tree
offload/plugins-nextgen/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -270,12 +270,6 @@ struct GenericKernelTy {
270270 // / Get the kernel name.
271271 const char *getName () const { return Name; }
272272
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-
279273 // / Get the kernel image.
280274 DeviceImageTy &getImage () const {
281275 assert (ImagePtr && " Kernel is not initialized!" );
Original file line number Diff line number Diff line change @@ -470,7 +470,7 @@ GenericKernelTy::getKernelLaunchEnvironment(
470470 // Ctor/Dtor have no arguments, replaying uses the original kernel launch
471471 // environment. Older versions of the compiler do not generate a kernel
472472 // launch environment.
473- if (isCtorOrDtor () || RecordReplay.isReplaying () ||
473+ if (RecordReplay.isReplaying () ||
474474 Version < OMP_KERNEL_ARG_MIN_VERSION_WITH_DYN_PTR)
475475 return nullptr ;
476476
@@ -579,9 +579,6 @@ void *GenericKernelTy::prepareArgs(
579579 uint32_t &NumArgs, llvm::SmallVectorImpl<void *> &Args,
580580 llvm::SmallVectorImpl<void *> &Ptrs,
581581 KernelLaunchEnvironmentTy *KernelLaunchEnvironment) const {
582- if (isCtorOrDtor ())
583- return nullptr ;
584-
585582 uint32_t KLEOffset = !!KernelLaunchEnvironment;
586583 NumArgs += KLEOffset;
587584
You can’t perform that action at this time.
0 commit comments