[clang] [SYCL] SYCL host kernel launch support for the sycl_kernel_entry_point attribute. (PR #152403)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 12 15:54:07 PST 2025


================
@@ -16412,28 +16438,53 @@ Decl *Sema::ActOnFinishFunctionBody(Decl *dcl, Stmt *Body, bool IsInstantiation,
         FD->getAttr<SYCLKernelEntryPointAttr>();
     if (FD->isDefaulted()) {
       Diag(SKEPAttr->getLocation(), diag::err_sycl_entry_point_invalid)
-          << SKEPAttr << /*defaulted function*/ 3;
+          << SKEPAttr << /*defaulted function*/ 2;
----------------
erichkeane wrote:

See `enum_select` in the Attr.td file.  We've defined something exactly for this purpose.  I'd be against doing it in a separate PR.

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


More information about the cfe-commits mailing list