[clang] [clang][Sema] Split SYCLKernel back into its own attribute (PR #162868)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 10 09:47:30 PDT 2025


================
@@ -1599,8 +1599,15 @@ def CUDAShared : InheritableAttr {
 }
 def : MutualExclusions<[CUDAConstant, CUDAShared, HIPManaged]>;
 
+def SYCLKernel : InheritableAttr {
+  let Spellings = [Clang<"sycl_kernel">];
+  let Subjects = SubjectList<[FunctionTmpl]>;
+  let LangOpts = [SYCLDevice];
----------------
jhuber6 wrote:

Since a SYCL compilation does both, would using this attribute always result in an attribute ignored warning for the host?

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


More information about the cfe-commits mailing list