Fznamznon wrote:

> > Note that we still need to diagnose references in user's kernel arguments 
> > since they are explicitly not allowed by SYCL 2020 spec and this task is in 
> > TODO list. This patch simply removes references from types written in SYCL 
> > Runtime library.
> 
> Is libsycl supposed to pass references to 
> [[clang::sycl_kernel_entry_point]]-attributed function? If no, I think it's 
> worth adding a warning about type mutation to inform libsycl developers.

Yes, this is expected to be a valid scenario. This will be done to avoid 
additional copies of kernel object when transferring it to kernel setting API 
(i.e. `clSetKernelArg` in OpenCL terms), so I would avoid a warning here.

https://github.com/llvm/llvm-project/pull/186788
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to