Page MenuHomePhabricator

[mlir][python] Function decorator for capturing a FuncOp from a python function.
ClosedPublic

Authored by stellaraccident on Mar 19 2021, 3:45 PM.

Details

Summary
  • Moves this out of a test case where it was being developed to good effect and generalizes it.
  • Having tried a number of things like this, I think this balances concerns reasonably well.

Diff Detail

Event Timeline

stellaraccident requested review of this revision.Mar 19 2021, 3:45 PM

Fix name typo.

mehdi_amini accepted this revision.Mar 19 2021, 4:31 PM

I saw it when you added this to the DSL and thought that it'd be a good candidate in the more common infra, this is neat!

mlir/lib/Bindings/Python/mlir/dialects/_builtin_ops_ext.py
114

Typo: "passed"

This revision is now accepted and ready to land.Mar 19 2021, 4:31 PM
stellaraccident marked an inline comment as done.Mar 19 2021, 6:20 PM