This is an archive of the discontinued LLVM Phabricator instance.

[mlir:OpAsm] Factor out the common bits of (Op/Dialect)Asm(Parser/Printer)
ClosedPublic

Authored by rriddle on Sep 23 2021, 5:35 PM.

Details

Summary

This has a few benefits:

  • It allows for defining parsers/printer code blocks that can be shared between operations and attribute/types.
  • It removes the weird duplication of generic parser/printer hooks, which means that newly added hooks only require touching one class.

Diff Detail

Event Timeline

rriddle created this revision.Sep 23 2021, 5:35 PM
rriddle requested review of this revision.Sep 23 2021, 5:35 PM
mehdi_amini accepted this revision.Sep 23 2021, 6:13 PM

LG on the direction, I just skimmed through the details.

This revision is now accepted and ready to land.Sep 23 2021, 6:13 PM
This revision was landed with ongoing or failed builds.Sep 24 2021, 1:16 PM
This revision was automatically updated to reflect the committed changes.

Thank you for doing this! I was planning to look at this and you beat me to it, great work.