[clang] [llvm] [Clang][SYCL] Call sycl_kernel_launch with a kernel info type rather than a kernel name type. (PR #208958)

Tom Honermann via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 12 15:57:42 PST 2026


================
@@ -103,34 +103,48 @@ class UnresolvedSYCLKernelCallStmt : public Stmt {
 
 private:
   Stmt *OriginalStmt = nullptr;
+
+  // The kernel information type to use in synthesized calls to the SYCL
+  // runtime library. This type is a specialization of the class template
+  // returned by SemaSYCL::GetSYCLKernelInfoClassTemplate() specialized for
+  // the kernel name type. This will be a dependent type if the kernel name
+  // type is dependent.
+  QualType KernelInfoType;
----------------
tahonermann wrote:

Wow! Great catch! It was used in some of my earlier attempts to get template instantiation working correctly, but I eventually switched to generating the type only when needed and I guess I never realized this member was no longer needed. Fixed in https://github.com/llvm/llvm-project/pull/208958/changes/75dc9ca85b696f550b955de33d43811a3de3fabe.

https://github.com/llvm/llvm-project/pull/208958


More information about the cfe-commits mailing list