From 65673e9472edc98d5c74d97df8f40886e79e92a2 Mon Sep 17 00:00:00 2001 From: Alex Light Date: Mon, 8 Jan 2024 14:17:51 -0800 Subject: [PATCH] Remove the `--run_only_passes` and replace all uses with appropriate `--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 --- transpiler/fhe_xls.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transpiler/fhe_xls.bzl b/transpiler/fhe_xls.bzl index 3fcb95d..72cfe90 100644 --- a/transpiler/fhe_xls.bzl +++ b/transpiler/fhe_xls.bzl @@ -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: