Commit 77dd693
authored
[SYCL] Replace hardcoded namespaces with attribute (#6674)
Namespaces were hardcoded and used in compiler to
check for various SYCL types including accessors,
spec_constants, etc. This patch implements an
attribute to uniquely identify the types instead.
Attribute argument is an Identifier which denotes
each type.
E.g. __attribute__((sycl_type(accessor)) is used
to mark accessor class.
The attribute has been implemented as with an
accepted list of arguments via EnumArg. The attribute
definition should be updated to support any new types.
The attribute takes 1 argument.
Fixes: #5186
Signed-off-by: Elizabeth Andrews <[email protected]>1 parent 57aabe7 commit 77dd693
File tree
21 files changed
+260
-308
lines changed- clang
- include/clang
- Basic
- Sema
- lib/Sema
- test
- CodeGenSYCL
- Inputs
- Misc
- SemaSYCL
- Inputs
- sycl/include/sycl
- detail
- ext/oneapi
- experimental
- properties
21 files changed
+260
-308
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1281 | 1281 | | |
1282 | 1282 | | |
1283 | 1283 | | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
1284 | 1301 | | |
1285 | 1302 | | |
1286 | 1303 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4098 | 4098 | | |
4099 | 4099 | | |
4100 | 4100 | | |
| 4101 | + | |
| 4102 | + | |
4101 | 4103 | | |
4102 | 4104 | | |
4103 | 4105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10858 | 10858 | | |
10859 | 10859 | | |
10860 | 10860 | | |
| 10861 | + | |
| 10862 | + | |
| 10863 | + | |
10861 | 10864 | | |
10862 | 10865 | | |
10863 | 10866 | | |
| |||
13546 | 13549 | | |
13547 | 13550 | | |
13548 | 13551 | | |
| 13552 | + | |
| 13553 | + | |
| 13554 | + | |
| 13555 | + | |
13549 | 13556 | | |
13550 | 13557 | | |
13551 | 13558 | | |
13552 | 13559 | | |
13553 | 13560 | | |
13554 | | - | |
| 13561 | + | |
13555 | 13562 | | |
13556 | 13563 | | |
13557 | 13564 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2918 | 2918 | | |
2919 | 2919 | | |
2920 | 2920 | | |
| 2921 | + | |
| 2922 | + | |
2921 | 2923 | | |
2922 | 2924 | | |
2923 | 2925 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10426 | 10426 | | |
10427 | 10427 | | |
10428 | 10428 | | |
10429 | | - | |
10430 | | - | |
10431 | | - | |
10432 | | - | |
10433 | | - | |
10434 | | - | |
10435 | | - | |
10436 | 10429 | | |
10437 | 10430 | | |
10438 | 10431 | | |
10439 | 10432 | | |
10440 | 10433 | | |
10441 | | - | |
10442 | | - | |
10443 | | - | |
10444 | | - | |
10445 | | - | |
10446 | | - | |
10447 | | - | |
10448 | | - | |
10449 | | - | |
10450 | | - | |
10451 | | - | |
10452 | | - | |
| 10434 | + | |
| 10435 | + | |
10453 | 10436 | | |
10454 | | - | |
10455 | | - | |
10456 | | - | |
10457 | | - | |
10458 | | - | |
10459 | | - | |
10460 | | - | |
10461 | | - | |
10462 | | - | |
10463 | | - | |
10464 | | - | |
10465 | | - | |
10466 | | - | |
10467 | | - | |
10468 | | - | |
| 10437 | + | |
10469 | 10438 | | |
10470 | 10439 | | |
10471 | 10440 | | |
| |||
10590 | 10559 | | |
10591 | 10560 | | |
10592 | 10561 | | |
| 10562 | + | |
| 10563 | + | |
| 10564 | + | |
| 10565 | + | |
| 10566 | + | |
| 10567 | + | |
| 10568 | + | |
| 10569 | + | |
| 10570 | + | |
| 10571 | + | |
| 10572 | + | |
| 10573 | + | |
| 10574 | + | |
| 10575 | + | |
| 10576 | + | |
| 10577 | + | |
| 10578 | + | |
| 10579 | + | |
| 10580 | + | |
| 10581 | + | |
| 10582 | + | |
| 10583 | + | |
| 10584 | + | |
| 10585 | + | |
| 10586 | + | |
| 10587 | + | |
| 10588 | + | |
| 10589 | + | |
| 10590 | + | |
| 10591 | + | |
| 10592 | + | |
| 10593 | + | |
| 10594 | + | |
10593 | 10595 | | |
10594 | 10596 | | |
10595 | 10597 | | |
| |||
11142 | 11144 | | |
11143 | 11145 | | |
11144 | 11146 | | |
| 11147 | + | |
| 11148 | + | |
| 11149 | + | |
11145 | 11150 | | |
11146 | 11151 | | |
11147 | 11152 | | |
| |||
0 commit comments