This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen] Print user-friendly debug locations as MI comments
ClosedPublic

Authored by thegameg on Apr 23 2018, 2:48 PM.

Details

Summary

If available, print the file, line and column of the DebugLoc attached to the MachineInstr:

MOV16mr $rbp, 1, $noreg, -112, $noreg, killed renamable $ax, debug-location !56 :: (store 2 into %ir.._value12); stepping.swift:10:17

renamable $edx = MOVZX32rm16 $rbp, 1, $noreg, -112, $noreg, debug-location !62 :: (dereferenceable load 2 from %ir.._value13); stepping.swift:10:17

Diff Detail

Repository
rL LLVM

Event Timeline

thegameg created this revision.Apr 23 2018, 2:48 PM
vsk accepted this revision.Apr 23 2018, 3:41 PM

Thanks, lgtm!

This revision is now accepted and ready to land.Apr 23 2018, 3:41 PM
JDevlieghere accepted this revision.Apr 24 2018, 3:56 AM

Thanks Francis, LGTM!

This revision was automatically updated to reflect the committed changes.