Commit 257132a
Anastasia Stulova
[OpenCL] Handle taking an address of block captures.
Block captures can have different physical locations
in memory segments depending on the use case (as a function
call or as a kernel enqueue) and in different vendor
implementations.
Therefore it's unclear how to add address space to capture
addresses uniformly. Currently it has been decided to disallow
taking addresses of captured variables until further
clarifications in the spec.
Differential Revision: https://reviews.llvm.org/D36410
llvm-svn: 3127281 parent 20489ec commit 257132a
File tree
3 files changed
+24
-14
lines changed- clang
- include/clang/Basic
- lib/Sema
- test/SemaOpenCL
3 files changed
+24
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7349 | 7349 | | |
7350 | 7350 | | |
7351 | 7351 | | |
7352 | | - | |
7353 | | - | |
| 7352 | + | |
| 7353 | + | |
7354 | 7354 | | |
7355 | 7355 | | |
7356 | 7356 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | 428 | | |
437 | 429 | | |
438 | 430 | | |
| |||
10869 | 10861 | | |
10870 | 10862 | | |
10871 | 10863 | | |
10872 | | - | |
10873 | | - | |
10874 | | - | |
10875 | | - | |
| 10864 | + | |
| 10865 | + | |
| 10866 | + | |
| 10867 | + | |
| 10868 | + | |
| 10869 | + | |
| 10870 | + | |
| 10871 | + | |
| 10872 | + | |
| 10873 | + | |
| 10874 | + | |
10876 | 10875 | | |
10877 | 10876 | | |
10878 | 10877 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
0 commit comments