================
@@ -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];
----------------
sarnex wrote:
Also about the test, yes we have a few tests,
`SemaSYCL/kernel-attribute-on-non-sycl.cpp` and `SemaSYCL/kernel-attribute.cpp`
https://github.com/llvm/llvm-project/pull/162868
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits