This is an archive of the discontinued LLVM Phabricator instance.

Stop stripping the `std.` prefix when printing operations in a region with a defined default dialect
ClosedPublic

Authored by mehdi_amini on Oct 5 2021, 6:37 PM.

Details

Summary

This fixes round-trip / ambiguity when an operation in the standard dialect would
have the same name as an operation in the default dialect.

Diff Detail

Event Timeline

mehdi_amini created this revision.Oct 5 2021, 6:37 PM
mehdi_amini requested review of this revision.Oct 5 2021, 6:37 PM
stellaraccident accepted this revision.Oct 5 2021, 6:51 PM

Thanks! I was searching for '"std"' figuring there had to be a callout for this, but needed to widen my search.

This revision is now accepted and ready to land.Oct 5 2021, 6:51 PM
rriddle added inline comments.Oct 5 2021, 6:54 PM
mlir/test/IR/parser.mlir
1328–1330

Can you add a TODO here that we remove this after the standard dialect isn't privileged?