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

via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 26 10:46:57 PDT 2025


================
@@ -1641,6 +1641,13 @@ def DeviceKernel : DeclOrTypeAttr {
 }];
 }
 
+def SYCLExternal : InheritableAttr {
+  let Spellings = [Clang<"sycl_external">];
----------------
schittir wrote:

This change fails two tests; will fix. 
  Clang :: CodeGenSPIRV/Builtins/generic_cast_to_ptr_explicit.c
  Clang :: CodeGenSPIRV/Builtins/ids_and_ranges.c

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


More information about the cfe-commits mailing list