We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f760d7f commit 87a1ef3Copy full SHA for 87a1ef3
xdsl_smt/cli/synthesize_lowering.py
@@ -1,6 +1,7 @@
1
import argparse
2
import subprocess as sp
3
4
+from xdsl.printer import Printer
5
from xdsl.context import Context
6
from xdsl.ir import Operation
7
from xdsl.parser import Parser
@@ -90,7 +91,7 @@ def try_synthesize_lowering_for_module(
90
91
number of operations to output.
92
"""
93
with open("/tmp/input-synthesize.mlir", "w") as f:
- f.write(str(module))
94
+ Printer(f, print_generic_format=True).print_op(module)
95
res = sp.run(
96
[
97
"superoptimize",
0 commit comments