[clang] Add sycl_external attribute (PR #140282)

Tom Honermann via cfe-commits cfe-commits at lists.llvm.org
Fri May 16 20:45:26 PDT 2025


================
@@ -0,0 +1,52 @@
+// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -verify -DSYCL %s
+// RUN: %clang_cc1 -fsycl-is-host -fsyntax-only -verify -DHOST %s
----------------
tahonermann wrote:

Since SYCL applies to both host and device, let's differentiate by "host" and "device" (with or without "SYCL")
```suggestion
// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -verify -DDEVICE %s
// RUN: %clang_cc1 -fsycl-is-host -fsyntax-only -verify -DHOST %s
```

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


More information about the cfe-commits mailing list