This is an archive of the discontinued LLVM Phabricator instance.

[mlir] fixes to transform::SequenceOp
ClosedPublic

Authored by ftynse on Dec 6 2022, 6:19 AM.

Details

Summary

Harden the verifier to check that the block argument type matches the
operand type, when present. This was overlooked when transform dialect
types were introduced.

Fix the builders to preserve the insertion point before creating the
block, otherwise the insertion point is updated to be within the block
by createBlock and never reset to be after the sequence op itself,
leading all following operations to be created in the unexpected to
the caller place.

Diff Detail

Event Timeline

ftynse created this revision.Dec 6 2022, 6:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 6 2022, 6:19 AM
ftynse requested review of this revision.Dec 6 2022, 6:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 6 2022, 6:19 AM
springerm accepted this revision.Dec 6 2022, 6:21 AM
This revision is now accepted and ready to land.Dec 6 2022, 6:21 AM
chelini accepted this revision.Dec 6 2022, 6:21 AM
This revision was automatically updated to reflect the committed changes.