File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,11 @@ namespace {
2626// Users are expected to subclass this and implement the `run` method, e.g.
2727// ```
2828// class MyPass(mlir.passmanager.Pass):
29+ // def __init__(self):
30+ // super().__init__("MyPass", ..)
31+ // # other init stuff..
2932// def run(self, operation):
30- // # do something with operation
33+ // # do something with operation..
3134// pass
3235// ```
3336class PyPassBase {
@@ -60,7 +63,6 @@ class PyPassBase {
6063 // Make an MlirPass instance on-the-fly that wraps this object.
6164 // Note that passmanager will take the ownership of the returned
6265 // object and release it when appropriate.
63- // Also, `*this` must remain alive as long as the returned object is alive.
6466 MlirPass make () {
6567 auto *obj = nb::find (this ).release ().ptr ();
6668 return mlirCreateExternalPass (
You can’t perform that action at this time.
0 commit comments