This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Update SourceLevelDebugging.rst to better explain kill locations
ClosedPublic

Authored by Orlando on Jan 4 2023, 7:10 AM.

Diff Detail

Event Timeline

Orlando created this revision.Jan 4 2023, 7:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 4 2023, 7:10 AM
Orlando requested review of this revision.Jan 4 2023, 7:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 4 2023, 7:10 AM

Minor comments but otherwise LGTM.

llvm/docs/SourceLevelDebugging.rst
520
534–535

Maybe a minor point, but "in practice" implies it is valid but just doesn't occur naturally, when it would really just be an error however it came about. Maybe "this cannot appear as part of a !DIArgList" or something similar.

536–537

Technically the DIExpression doesn't have to be empty - it just has to be non-complex, i.e. it contains only DW_OP_LLVM_tag_offset or DW_OP_LLVM_fragment elements. The distinction probably isn't important here however.

jryans accepted this revision.Jan 5 2023, 4:14 AM

Thanks for adding these docs, looks great to me! 🙂 It will be helpful for the future to have these details recorded.

This revision is now accepted and ready to land.Jan 5 2023, 4:14 AM
scott.linder accepted this revision.Jan 5 2023, 12:03 PM

LGTM (with the other comments resolved), thank you for documenting this!

This revision was automatically updated to reflect the committed changes.
Orlando marked 2 inline comments as done.

Thanks everyone for reviewing this (and the rest of the stack), sorry it has taken a while to get these landed!