Commit 978a6d3
authored
[SPIRV] Emit DebugScope in wrapper (microsoft#7341) (microsoft#7529)
Legalization and optimization will produce inaccurate NS100 debug info
if there is no DebugScope emitted in the wrapper function. This PR
corrects this oversight and renames the wrapper to "__dxc_setup". This
may cause a stack frame named __dxc_setup to appear in an HLSL debugger,
however, users should be familiar with this type of thing. A C debugger
might show crt0, or a debugger can filter this frame out of the user's
view. This PR addresses
[7341](https://github.com/microsoft/DirectXShaderCompiler/issues//7341)1 parent 8a77b0c commit 978a6d3
5 files changed
Lines changed: 17 additions & 12 deletions
File tree
- tools/clang
- lib/SPIRV
- test/CodeGenSPIRV
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1635 | 1635 | | |
1636 | 1636 | | |
1637 | 1637 | | |
1638 | | - | |
1639 | | - | |
1640 | | - | |
1641 | | - | |
1642 | | - | |
1643 | | - | |
1644 | 1638 | | |
1645 | 1639 | | |
1646 | 1640 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14050 | 14050 | | |
14051 | 14051 | | |
14052 | 14052 | | |
14053 | | - | |
14054 | | - | |
| 14053 | + | |
| 14054 | + | |
14055 | 14055 | | |
14056 | 14056 | | |
14057 | 14057 | | |
| |||
14160 | 14160 | | |
14161 | 14161 | | |
14162 | 14162 | | |
| 14163 | + | |
| 14164 | + | |
| 14165 | + | |
| 14166 | + | |
14163 | 14167 | | |
14164 | 14168 | | |
14165 | 14169 | | |
| |||
14374 | 14378 | | |
14375 | 14379 | | |
14376 | 14380 | | |
14377 | | - | |
| 14381 | + | |
| 14382 | + | |
| 14383 | + | |
14378 | 14384 | | |
14379 | 14385 | | |
14380 | 14386 | | |
| |||
14391 | 14397 | | |
14392 | 14398 | | |
14393 | 14399 | | |
14394 | | - | |
| 14400 | + | |
14395 | 14401 | | |
14396 | 14402 | | |
14397 | 14403 | | |
| |||
14632 | 14638 | | |
14633 | 14639 | | |
14634 | 14640 | | |
| 14641 | + | |
| 14642 | + | |
| 14643 | + | |
| 14644 | + | |
14635 | 14645 | | |
14636 | 14646 | | |
14637 | 14647 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
958 | 958 | | |
959 | 959 | | |
960 | 960 | | |
| 961 | + | |
961 | 962 | | |
962 | 963 | | |
963 | 964 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments