Commit 7187f7b
authored
[SYCL] Add support for 'sycl_special_class' attribute. (#3892)
Special classes such as accessor, sampler, and stream need additional implementation when they are passed from host to device. Currently the compiler recognizes these classes by their name.
This patch is adding a new attribute “sycl_special_class” used to mark SYCL classes that need the additional compiler handling.
Usage:
```c++
class __attribute__((sycl_special_class)) class special_class {
...
};
```
Signed-off-by: Zahira Ammarguellat <zahira.ammarguellat@intel.com>1 parent bc8a00a commit 7187f7b
File tree
13 files changed
+241
-396
lines changed- clang
- include/clang/Basic
- lib/Sema
- test
- CodeGenSYCL
- Inputs
- Misc
- SemaSYCL
- Inputs
- sycl/include/CL/sycl
- detail
13 files changed
+241
-396
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1233 | 1233 | | |
1234 | 1234 | | |
1235 | 1235 | | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
1236 | 1243 | | |
1237 | 1244 | | |
1238 | 1245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
408 | 428 | | |
409 | 429 | | |
410 | 430 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9796 | 9796 | | |
9797 | 9797 | | |
9798 | 9798 | | |
| 9799 | + | |
| 9800 | + | |
| 9801 | + | |
9799 | 9802 | | |
9800 | 9803 | | |
9801 | 9804 | | |
| |||
0 commit comments