llvm
llvm copied to clipboard
[SYCL] Return ref to shared_ptr from handler::getOrInsertHandlerKernelBundle()
It's reference to impl of handler, so it's correct to return the reference.
arc fails tracked by https://github.com/intel/llvm/issues/18668
@uditagarwal97 , what do you think about it?
IMO, this should be returning raw pointer with the
kernel_bundle_implupdated to be inherited fromstd::enable_shared_from_this, similar to what I'm doing for other classes (e.g. #18795 with links in the description or current WIP #18767)
Thanks for the idea! [SYCL] enable_shared_from_this for kernel_bundle_impl #18899 opened.