Skip to content

Conversation

@jmorse
Copy link
Member

@jmorse jmorse commented Feb 17, 2025

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.

Copy link
Contributor

@OCHyams OCHyams left a 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).

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.
Copy link
Contributor

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.

Copy link
Member Author

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".)

Copy link
Contributor

@OCHyams OCHyams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tstellar tstellar merged commit 5c12625 into llvm:release/20.x Feb 18, 2025
16 checks passed
@github-actions
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

3 participants