The new constructor relies on type-based dynamic dispatch and allows one to
construct call operations given an object representing a FuncOp or its name as
a string, as opposed to requiring an explicitly constructed attribute.
Depends On D110947
Paths
| Differential D110948
[mlir][python] Provide more convenient constructors for std.CallOp ClosedPublic Authored by ftynse on Oct 1 2021, 9:33 AM.
Details Summary The new constructor relies on type-based dynamic dispatch and allows one to Depends On D110947
Diff Detail
Event TimelineHerald added subscribers: wenzhicui, wrengr, Chia-hungDuan and 19 others. · View Herald TranscriptOct 1 2021, 9:33 AM stellaraccident added inline comments.
This revision is now accepted and ready to land.Oct 1 2021, 10:32 AM
Closed by commit rG255a690971cb: [mlir][python] Provide more convenient constructors for std.CallOp (authored by ftynse). · Explain WhyOct 4 2021, 2:45 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 376837 mlir/python/mlir/dialects/_builtin_ops_ext.py
mlir/python/mlir/dialects/_std_ops_ext.py
mlir/test/python/dialects/builtin.py
mlir/test/python/dialects/std.py
|
As I've been looking at docs and using intellisense more, I've come to see all of the typing debt we have. Wdyt about, when touching these things, adding return type annotations?