Skip to content

Commit 6a9ec66

Browse files
committed
remove useless comment
1 parent 7966ddd commit 6a9ec66

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mlir/lib/Bindings/Python/Pass.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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
// ```
3336
class 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(

0 commit comments

Comments
 (0)