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

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 31 07:38:33 PDT 2024


================
@@ -14296,6 +14296,31 @@ void ASTContext::getFunctionFeatureMap(llvm::StringMap<bool> &FeatureMap,
   }
 }
 
+static SYCLKernelInfo BuildSYCLKernelInfo(ASTContext &Context,
+                                          CanQualType KernelNameType,
+                                          const FunctionDecl *FD) {
+  return { KernelNameType, FD };
+}
+
+void ASTContext::registerSYCLEntryPointFunction(FunctionDecl *FD) {
+  assert(!FD->isInvalidDecl());
+  assert(!FD->isDependentContext());
----------------
erichkeane wrote:

Yeah, I'm finding that sort of thing as well, which is frustrating, particularly because 'code view' is what i always WANT anyway (and doesn't result in you getting 300 emails as I respond to messages, as I can do them as reviews).  Its like no one at github actually uses this tool...

Cool, glad you looked into it!  I knew I looked into it and preferred it at one point, but didn't recall why (and looking it up on my phone seemed.... onerous).

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


More information about the cfe-commits mailing list