Skip to content

Commit

Permalink
Remove the --run_only_passes and replace all uses with appropriate …
Browse files Browse the repository at this point in the history
…`--passes` flags

In almost all cases what one wants when using the `--run_only_passes` flag was to run a single pass. Using the `--passes` flag is much clearer. In a small number of cases an actual pipeline is required and in that case the explicit `--passes` pipeline is much nicer and easier to reason about since it doesn't have the implicit embeeding of the standard pipeline.

PiperOrigin-RevId: 596700128
  • Loading branch information
allight authored and copybara-github committed Jan 8, 2024
1 parent a74b73e commit 65673e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transpiler/fhe_xls.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _optimize_and_booleanify_repeatedly(ctx, stem, ir_file, entry):
# inlining pass, as the booleanifier expects a single function.
if ctx.attr.num_opt_passes == 0:
suffix += ".opt"
results.append(optimize_ir(ctx, stem, results[-1], suffix + ".ir", entry, ["--run_only_passes=inlining"]))
results.append(optimize_ir(ctx, stem, results[-1], suffix + ".ir", entry, ["--passes=inlining"]))
suffix += ".bool"
results.append(_booleanify_ir(ctx, stem, results[-1], suffix + ".ir", entry))
else:
Expand Down

0 comments on commit 65673e9

Please sign in to comment.