Skip to content

Conversation

@jrbyrnes
Copy link
Contributor

I didn't see any version that had the insertAfter functionality.

This makes life easier for clients who want to insertAfter a given MI. Otherwise, they will need to create an ad-hoc implementation or do manipulate the iterators to work with the insert before versions.

Change-Id: Id60cc08a836bcc514b838e0782ddb9948dedf857
@jrbyrnes jrbyrnes requested a review from arsenm July 31, 2025 22:18
@github-actions
Copy link

github-actions bot commented Jul 31, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

Change-Id: I14c346a3e900c2994a685d849637ce01854c63d3
return MachineInstrBuilder(MF, MI)
.setPCSections(MIMD.getPCSections())
.setMMRAMetadata(MIMD.getMMRAMetadata());
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add an insertAfter to MachineInstrBuilder instead? e.g. BuildMI(...).insertAfter(I)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants