Commit 4a508c6
Emit correct kernel arguments debug metadata types when NUMBA_DUMP_LLVM is on (#136)
After shifting out the return value type from the operands of 'types' field of
the 'DISubroutineType' metadata node, compiler needs to clear the cached string
representation of the corresponding MDValue object if NUMBA_DUMP_LLVM is on.
Because at that moment, the cached string has already been filled with the
tuple before kernel_fixup() which has the return value type and continue being
used when printing out the LLVM IR.
This change fixes #135
* Add a test for issue#135
Enriches an existing test by adding a variation, i.e. turn NUMBA_DUMP_LLVM on.
* Use the output capturing to prevent dumping to stdout.
---------
Co-authored-by: Graham Markall <[email protected]>1 parent edbc318 commit 4a508c6
File tree
2 files changed
+13
-2
lines changed- numba_cuda/numba/cuda
- tests/cudapy
2 files changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
| 430 | + | |
| 431 | + | |
430 | 432 | | |
431 | 433 | | |
432 | 434 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
301 | 310 | | |
302 | 311 | | |
303 | 312 | | |
0 commit comments