HomePhabricator

[mlir][python] Add facility for extending generated python ODS.

Authored by stellaraccident on Jan 19 2021, 1:16 PM.

Description

[mlir][python] Add facility for extending generated python ODS.

  • This isn't exclusive with other mechanisms for more ODS centric op definitions, but based on discussions, we feel that we will always benefit from a python escape hatch, and that is the most natural way to write things that don't fit the mold.
  • I suspect this facility needs further tweaking, and once it settles, I'll document it and add more tests.
  • Added extensions for linalg, since it is unusable without them and continued to evolve my e2e example.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D94752