Commit 9c73c14
committed
[CUDA][HIP] Fix implicit attribute of builtin
When a builtin function with generic pointer parameter is passed
a pointer with address space, clang creates an overloaded
builtin function but does not make it implicit. This causes
error when the builtin is called by device functions
since CUDA/HIP relies on the implicit attribute to treat
a builtin function as callable on both host and device
sides.
Fixed by making the created overloaded builtin functions implicit.1 parent 0e9740e commit 9c73c14
File tree
2 files changed
+24
-0
lines changed- clang
- lib/Sema
- test/SemaCUDA
2 files changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6358 | 6358 | | |
6359 | 6359 | | |
6360 | 6360 | | |
| 6361 | + | |
6361 | 6362 | | |
6362 | 6363 | | |
6363 | 6364 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments