This is an archive of the discontinued LLVM Phabricator instance.

[IR][NFC] Adds Instruction::insertAt() for inserting at a specific point in the instr list.
ClosedPublic

Authored by vporpo on Nov 28 2022, 3:59 PM.

Details

Summary

Currently the only way to do this is to work with the instruction list directly.
This is part of a series of cleanup patches towards making BasicBlock::getInstList() private.

Diff Detail

Event Timeline

vporpo created this revision.Nov 28 2022, 3:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 28 2022, 3:59 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
vporpo requested review of this revision.Nov 28 2022, 3:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 28 2022, 3:59 PM
asbirlea accepted this revision.Nov 29 2022, 5:09 PM
This revision is now accepted and ready to land.Nov 29 2022, 5:09 PM
This revision was landed with ongoing or failed builds.Nov 29 2022, 8:16 PM
This revision was automatically updated to reflect the committed changes.