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 e0fffe5 commit 7123b62Copy full SHA for 7123b62
xdsl_smt/cli/superoptimize.py
@@ -84,18 +84,6 @@ def register_all_arguments(arg_parser: argparse.ArgumentParser):
84
)
85
86
87
-def replace_synth_with_constants(
88
- program: ModuleOp, values: list[IntegerAttr[IntegerType]]
89
-) -> None:
90
- synth_ops: list[synth.ConstantOp] = []
91
- for op in program.walk():
92
- if isinstance(op, synth.ConstantOp):
93
- synth_ops.append(op)
94
-
95
- for op, value in zip(synth_ops, values):
96
- Rewriter.replace_op(op, hw.ConstantOp(value))
97
98
99
def main() -> None:
100
arg_parser = argparse.ArgumentParser()
101
register_all_arguments(arg_parser)
0 commit comments