Commit b72d627
[HeterogeneousDwarf] Improve -O1 debugging support
Squashed commit, fixes SWDEV-463925.
This is a combination of 5 commits.
This is the 1st commit message:
[AMDGPU] Remove Dwarf encodings for subregisters
Previously, registers and subregisters mapped to the same Dwarf
encoding. We don't really have any way to refer to subregisters directly
from Dwarf, the expression emitter should instead use DW_OPs to stencil
out the subregister from the whole register. This was also confusing
tools that need to map back to the llvm reg (e.g. dwarfdump), since
getLLVMRegNum() would arbitrarily return the _LO16 register.
This is a cherry-pick of github.com/llvm/pull/117891 with
test fixes.
Change-Id: I155bce592c7d556c01a7e3048bb8b251109dd51d
This is the commit message #2:
[HeterogeneousDwarf] Support poisoned fragments in DIExpression
This improves fragment emission, since we previously had to assume that
a poisoned expression clobbered all other live variable fragments. Now,
it only clobbers the region described by it's fragment.
This commit also canonicalizes any DIExpression containing a poison to
only the ops DW_OP_LLVM_poisoned and (optionally) DW_OP_LLVM_fragment.
The other ops don't really serve any purpose since we can't rely on any
invariants (e.g. number of location ops) of a poisoned expression. This
also cleans up the dwarf output for posioned exprs.
Change-Id: I97bd9513a81b30f290ef70f958dcc8ca4c79e489
This is the commit message #3:
[HeterogeneousDwarf] Support Dwarf register emission of subregs/sequences
This commit adds support for emitting subregisters and register
sequences. This is needed for debugging -O1, since DIExpressions can now
refer to these registers.
Change-Id: Ic7b468a01855d3f8dc675dce4b2280625bf68574
This is the commit message #4:
[SelectionDAG] Add debug info salvaging for bitcast operations
This is needed to retain debug info for 64 bit kernel parameters.
This is the commit message #5:
[SROA] Fix DIOp-DIExpression fragment handling
Change-Id: If1f73e941c227d74ebe563c2857f5df2d60e9225
Change-Id: Id3914345ef7a434355f36e45d3ea0bf6c7ae29aa1 parent 27aaae0 commit b72d627
File tree
60 files changed
+19298
-18709
lines changed- llvm
- include/llvm/IR
- lib
- CodeGen
- AsmPrinter
- SelectionDAG
- IR
- Target/AMDGPU
- Transforms
- Scalar
- Utils
- test
- CodeGen/AMDGPU
- DebugInfo
- AMDGPU
- Transforms/SROA
- unittests
- IR
- MC/AMDGPU
- Target/AMDGPU
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
60 files changed
+19298
-18709
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3228 | 3228 | | |
3229 | 3229 | | |
3230 | 3230 | | |
| 3231 | + | |
| 3232 | + | |
| 3233 | + | |
| 3234 | + | |
| 3235 | + | |
| 3236 | + | |
| 3237 | + | |
| 3238 | + | |
| 3239 | + | |
| 3240 | + | |
| 3241 | + | |
| 3242 | + | |
| 3243 | + | |
| 3244 | + | |
| 3245 | + | |
| 3246 | + | |
| 3247 | + | |
| 3248 | + | |
| 3249 | + | |
| 3250 | + | |
| 3251 | + | |
| 3252 | + | |
| 3253 | + | |
3231 | 3254 | | |
3232 | 3255 | | |
3233 | 3256 | | |
| |||
3264 | 3287 | | |
3265 | 3288 | | |
3266 | 3289 | | |
3267 | | - | |
3268 | | - | |
3269 | | - | |
3270 | | - | |
3271 | | - | |
3272 | 3290 | | |
3273 | 3291 | | |
3274 | 3292 | | |
3275 | 3293 | | |
3276 | 3294 | | |
3277 | | - | |
| 3295 | + | |
3278 | 3296 | | |
3279 | 3297 | | |
3280 | 3298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
200 | 202 | | |
201 | 203 | | |
| 204 | + | |
| 205 | + | |
202 | 206 | | |
203 | 207 | | |
204 | 208 | | |
205 | 209 | | |
206 | 210 | | |
207 | 211 | | |
| 212 | + | |
| 213 | + | |
208 | 214 | | |
209 | 215 | | |
210 | 216 | | |
| |||
225 | 231 | | |
226 | 232 | | |
227 | 233 | | |
| 234 | + | |
| 235 | + | |
228 | 236 | | |
229 | 237 | | |
230 | 238 | | |
| |||
255 | 263 | | |
256 | 264 | | |
257 | 265 | | |
| 266 | + | |
| 267 | + | |
258 | 268 | | |
259 | 269 | | |
260 | 270 | | |
| |||
510 | 520 | | |
511 | 521 | | |
512 | 522 | | |
| 523 | + | |
| 524 | + | |
513 | 525 | | |
514 | 526 | | |
515 | 527 | | |
| |||
529 | 541 | | |
530 | 542 | | |
531 | 543 | | |
532 | | - | |
| 544 | + | |
533 | 545 | | |
534 | 546 | | |
535 | 547 | | |
| |||
715 | 727 | | |
716 | 728 | | |
717 | 729 | | |
| 730 | + | |
718 | 731 | | |
719 | 732 | | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
720 | 741 | | |
721 | 742 | | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
722 | 746 | | |
723 | 747 | | |
724 | 748 | | |
| |||
756 | 780 | | |
757 | 781 | | |
758 | 782 | | |
759 | | - | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
760 | 790 | | |
761 | 791 | | |
762 | 792 | | |
| |||
806 | 836 | | |
807 | 837 | | |
808 | 838 | | |
| 839 | + | |
| 840 | + | |
809 | 841 | | |
810 | 842 | | |
811 | 843 | | |
| |||
912 | 944 | | |
913 | 945 | | |
914 | 946 | | |
915 | | - | |
916 | | - | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
917 | 950 | | |
918 | 951 | | |
919 | | - | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
920 | 1008 | | |
921 | 1009 | | |
922 | 1010 | | |
923 | 1011 | | |
924 | | - | |
| 1012 | + | |
925 | 1013 | | |
926 | 1014 | | |
927 | 1015 | | |
| |||
930 | 1018 | | |
931 | 1019 | | |
932 | 1020 | | |
933 | | - | |
| 1021 | + | |
934 | 1022 | | |
935 | 1023 | | |
936 | 1024 | | |
937 | 1025 | | |
938 | | - | |
| 1026 | + | |
939 | 1027 | | |
940 | 1028 | | |
941 | 1029 | | |
| |||
955 | 1043 | | |
956 | 1044 | | |
957 | 1045 | | |
958 | | - | |
| 1046 | + | |
959 | 1047 | | |
960 | | - | |
| 1048 | + | |
| 1049 | + | |
961 | 1050 | | |
962 | 1051 | | |
963 | 1052 | | |
| |||
1056 | 1145 | | |
1057 | 1146 | | |
1058 | 1147 | | |
1059 | | - | |
| 1148 | + | |
1060 | 1149 | | |
1061 | 1150 | | |
1062 | 1151 | | |
| |||
1153 | 1242 | | |
1154 | 1243 | | |
1155 | 1244 | | |
1156 | | - | |
| 1245 | + | |
1157 | 1246 | | |
1158 | 1247 | | |
1159 | 1248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
364 | 371 | | |
365 | 372 | | |
366 | 373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15402 | 15402 | | |
15403 | 15403 | | |
15404 | 15404 | | |
15405 | | - | |
| 15405 | + | |
| 15406 | + | |
15406 | 15407 | | |
| 15408 | + | |
15407 | 15409 | | |
15408 | 15410 | | |
15409 | 15411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11273 | 11273 | | |
11274 | 11274 | | |
11275 | 11275 | | |
| 11276 | + | |
| 11277 | + | |
| 11278 | + | |
| 11279 | + | |
| 11280 | + | |
| 11281 | + | |
| 11282 | + | |
| 11283 | + | |
| 11284 | + | |
| 11285 | + | |
| 11286 | + | |
| 11287 | + | |
| 11288 | + | |
| 11289 | + | |
| 11290 | + | |
| 11291 | + | |
| 11292 | + | |
| 11293 | + | |
| 11294 | + | |
| 11295 | + | |
| 11296 | + | |
| 11297 | + | |
| 11298 | + | |
| 11299 | + | |
| 11300 | + | |
| 11301 | + | |
| 11302 | + | |
| 11303 | + | |
| 11304 | + | |
11276 | 11305 | | |
11277 | 11306 | | |
11278 | 11307 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1386 | 1386 | | |
1387 | 1387 | | |
1388 | 1388 | | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
1389 | 1411 | | |
1390 | 1412 | | |
1391 | 1413 | | |
| |||
2368 | 2390 | | |
2369 | 2391 | | |
2370 | 2392 | | |
2371 | | - | |
2372 | | - | |
2373 | | - | |
2374 | | - | |
2375 | | - | |
2376 | | - | |
2377 | | - | |
2378 | 2393 | | |
2379 | 2394 | | |
2380 | 2395 | | |
| |||
0 commit comments