Commit d822eda
authored
[SYCL] Report compile time error for recursion in a SYCL kernel (#3390)
According to SYCL 2020 spec(https://www.khronos.org/registry/SYCL/specs/sycl-2020/html/sycl-2020.html#sec:language.restrictions.kernels), recursion is not allowed in SYCL kernel, we had better report compiling error for this illegal behavior. Moving runtime crash to compiling error is more friendly to users too.
Signed-off-by: gejin <ge.jin@intel.com>1 parent a504f72 commit d822eda
4 files changed
Lines changed: 5 additions & 7 deletions
File tree
- clang
- include/clang/Basic
- lib/Sema
- test/SemaSYCL
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11299 | 11299 | | |
11300 | 11300 | | |
11301 | 11301 | | |
11302 | | - | |
11303 | | - | |
11304 | | - | |
11305 | 11302 | | |
11306 | 11303 | | |
11307 | 11304 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
| 390 | + | |
| 391 | + | |
391 | 392 | | |
392 | 393 | | |
393 | 394 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments