[clang] [SYCL] The sycl_kernel_entry_point attribute. (PR #111389)
Tom Honermann via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 30 14:59:25 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());
----------------
tahonermann wrote:
Erich, I'm assuming my response satisfied your question about checking for a dependent context as opposed to a template kind here. I'm guessing your thoughts about template kind were motivated by an expectation that the attribute would only appertain to function templates; a restriction we dropped as discussed elsewhere.
https://github.com/llvm/llvm-project/pull/111389
More information about the cfe-commits
mailing list