Part of dbg.addr removal
Discussed in https://discourse.llvm.org/t/what-is-the-status-of-dbg-addr/62898
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
SGTM
I wonder if it's worth leaving a dbg.addr section in here as a migration guide for front ends that use it (or perhaps a release note would be sufficient - we should probably include a release note either way).
Additionally IMO it could be worth writing up another discourse post with a title that conveys the intention to remove dbg.addr to ensure no one feels caught out, linking to the existing discourse discussion. YMMV.
llvm/docs/SourceLevelDebugging.rst | ||
---|---|---|
203–204 | I guess we should update the docs to use opaque pointers in these examples (e.g. metadata ptr %buffer) but that is probably something for a seperate patch, since there are parts that need updating other than the bits you're touching here. |
I wasn't sure what the common practice around migration docs was... I tried looking around at how past feature removals were handled, and they all seemed to remove all docs as if the feature never existed, so that's what I went with here. I am not sure whether there's an actual policy, or if everyone's just following what the last person did... If someone would prefer migration docs, I can of course add them. It's somewhat unclear how many frontends (if any) adopted dbg.addr vs. following what Clang does (by not using it).
For the release note, that's a good suggestion, I will add a note about this.
Additionally IMO it could be worth writing up another discourse post with a title that conveys the intention to remove dbg.addr to ensure no one feels caught out, linking to the existing discourse discussion. YMMV.
Ah yes, seems reasonable, I created another thread: https://discourse.llvm.org/t/dbg-addr-intrinsic-slated-for-removal/68781
llvm/docs/SourceLevelDebugging.rst | ||
---|---|---|
203–204 | Right, probably best for a separate patch. There may be over conventions that need updating here (e.g. undef usage) as well. |
Added release notes.
I've also fixed up the style of other debug info notes (there was broken link syntax), hopefully that's okay...
Thank you! LGTM with inline nit.
llvm/docs/ReleaseNotes.rst | ||
---|---|---|
177–178 | nit: IMO it's worth mentioning the DW_OP_deref is prepended to the DIExpression. |
llvm/docs/ReleaseNotes.rst | ||
---|---|---|
177–178 | /s/prepended/appended |
nit: IMO it's worth mentioning the DW_OP_deref is prepended to the DIExpression.