[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

Tom Honermann via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 23 10:42:14 PDT 2025


================
@@ -1641,6 +1641,13 @@ def DeviceKernel : DeclOrTypeAttr {
 }];
 }
 
+def SYCLExternal : InheritableAttr {
+  let Spellings = [Clang<"sycl_external">];
----------------
tahonermann 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).

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


More information about the cfe-commits mailing list