Skip to content

Commit 751fe84

Browse files
committed
format
1 parent 1a98ae8 commit 751fe84

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

mlir/test/python/pass.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,25 @@ def testCustomPass():
5555
class CustomPass(Pass):
5656
def __init__(self):
5757
super().__init__("CustomPass", op_name="builtin.module")
58+
5859
def run(self, m):
5960
frozen = PDLModule(pdl_module).freeze()
6061
apply_patterns_and_fold_greedily_for_op(m, frozen)
6162

62-
module = ModuleOp.parse(r"""
63+
module = ModuleOp.parse(
64+
r"""
6365
module {
6466
func.func @add(%a: index, %b: index) -> index {
6567
%sum = arith.addi %a, %b : index
6668
return %sum : index
6769
}
6870
}
69-
""")
71+
"""
72+
)
7073

7174
# CHECK-LABEL: Dump After CustomPass
7275
# CHECK: arith.muli
73-
pm = PassManager('any')
76+
pm = PassManager("any")
7477
pm.enable_ir_printing()
7578
pm.add(CustomPass())
7679
pm.run(module)

0 commit comments

Comments
 (0)