This is an archive of the discontinued LLVM Phabricator instance.

[mlir:Parser] Always splice parsed operations to the end of the parsed block
ClosedPublic

Authored by rriddle on Oct 3 2022, 12:26 PM.

Details

Summary

The current splicing behavior dates back to when all blocks had terminators,
so we would "helpfully" splice before the terminator. This doesn't make sense
anymore, and leads to somewhat unexpected results when parsing multiple
pieces of IR into the same block.

Diff Detail

Event Timeline

rriddle created this revision.Oct 3 2022, 12:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 3 2022, 12:26 PM
rriddle requested review of this revision.Oct 3 2022, 12:26 PM
bzcheeseman accepted this revision.Oct 3 2022, 4:32 PM

LGTM, thanks River :)

This revision is now accepted and ready to land.Oct 3 2022, 4:32 PM