-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[ReleaseNotes][RemoveDIs] Add release note for deprecated insertion methods #127493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ReleaseNotes][RemoveDIs] Add release note for deprecated insertion methods #127493
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of nits from me (sorry).
llvm/docs/ReleaseNotes.md
Outdated
@@ -116,6 +116,8 @@ Changes to the LLVM IR | |||
Changes to LLVM infrastructure | |||
------------------------------ | |||
|
|||
* Several methods that use Instruction pointers as insertion positions (moveBefore, getFirstNonPHI) have been deprecated in favour of overloads and variants that use `BasicBlock::iterator`s instead. The instruction-flavoured methods will be removed in a future release. This work is part of the [RemoveDIs](https://llvm.org/docs/RemoveDIsDebugInfo.html) project, the documentation for which contains instructions for updating call-sites using the deprecated methods. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of nits from me (sorry).
... that github ate.
I think there's some unnecessary ambiguity around whether moveBefore
+ getFirstNonPHI
is the complete list of affected functions or not (I think both the word "several" and then having those two in parens is causing it). Can we be more precise?
Secondly, IMO I think changing "instruction-flavoured" to "pointer-flavoured" slightly improves clarity. YMMV though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some rewording to "Two methods", "pointer-flavoured", and stating that the methods use pointers as "code positions" because technically getFirstNonPHI
isn't about insertion.
(It's a bit tricky to correctly abstract the wording over "this is about insertions but not all the functions are inserters".)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@jmorse (or anyone else). If you would like to add a note about this fix in the release notes (completely optional). Please reply to this comment with a one or two sentence description of the fix. When you are done, please add the release:note label to this PR. |
I've stuck this under "LLVM Infrastructure" as the IR plumbing methods feel like infrastructure. The LLVM17 release notes stuck similar notes in that section too.