Skip to content

Commit 87a1ef3

Browse files
committed
Generate files with generic format in synthesize_lowering
1 parent f760d7f commit 87a1ef3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xdsl_smt/cli/synthesize_lowering.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import argparse
22
import subprocess as sp
33

4+
from xdsl.printer import Printer
45
from xdsl.context import Context
56
from xdsl.ir import Operation
67
from xdsl.parser import Parser
@@ -90,7 +91,7 @@ def try_synthesize_lowering_for_module(
9091
number of operations to output.
9192
"""
9293
with open("/tmp/input-synthesize.mlir", "w") as f:
93-
f.write(str(module))
94+
Printer(f, print_generic_format=True).print_op(module)
9495
res = sp.run(
9596
[
9697
"superoptimize",

0 commit comments

Comments
 (0)