[clang] [SYCL] The sycl_kernel_entry_point attribute. (PR #111389)

Tom Honermann via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 31 13:34:23 PDT 2024


================
@@ -12053,6 +12053,10 @@ bool Sema::CheckFunctionDeclaration(Scope *S, FunctionDecl *NewFD,
   if (LangOpts.OpenMP)
     OpenMP().ActOnFinishedFunctionDefinitionInOpenMPAssumeScope(NewFD);
 
+  if (LangOpts.isSYCL() && NewFD->hasAttr<SYCLKernelEntryPointAttr>() &&
+      !NewFD->isInvalidDecl() && !NewFD->isDependentContext())
----------------
tahonermann wrote:

I'm going to resolve this conversation about the use of `llvm::report_fatal_error()` since the most recent comments on this topic are happening in https://github.com/llvm/llvm-project/pull/111389#discussion_r1825122665.

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


More information about the cfe-commits mailing list