[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 23 10:45:47 PDT 2025
================
@@ -1641,6 +1641,13 @@ def DeviceKernel : DeclOrTypeAttr {
}];
}
+def SYCLExternal : InheritableAttr {
+ let Spellings = [Clang<"sycl_external">];
----------------
erichkeane wrote:
> Ok, I'm fine with dropping the GNU spelling. But in that case, we should also change the `sycl_kernel_entry_point` attribute to match (either in this PR or in a separate one).
Agreed. SLIGHT preference for separate PR (as I feel like we're almost done with this one, so for the sake of expedience).
https://github.com/llvm/llvm-project/pull/140282
More information about the cfe-commits
mailing list