Skip to content

Add xlsynth_flags attr to xlsynth rules.#48

Open
meheff wants to merge 1 commit intomainfrom
meheff/2025-10-02-dslx2pipeline-eco
Open

Add xlsynth_flags attr to xlsynth rules.#48
meheff wants to merge 1 commit intomainfrom
meheff/2025-10-02-dslx2pipeline-eco

Conversation

@meheff
Copy link
Copy Markdown
Contributor

@meheff meheff commented Oct 22, 2025

These flags are passed directly to the driver. This is similar to other rules for other languages (eg: rustc_flags, copts, etc.) and is useful for debugging or handling weird corner cases.

These flags are passed directly to the driver.
@meheff meheff requested review from cdleary and Copilot October 22, 2025 18:26
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds an xlsynth_flags attribute to multiple xlsynth build rules, enabling users to pass custom flags directly to the xlsynth driver. This pattern is consistent with other language rules (e.g., rustc_flags, copts) and provides flexibility for debugging and handling edge cases.

Key Changes:

  • Added xlsynth_flags string_list attribute to all xlsynth-related build rules
  • Updated command construction to append extra flags when provided
  • Standardized load statement ordering across files

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
ir_to_gates.bzl Added xlsynth_flags attribute and flag handling to ir_to_gates rule
ir_to_delay_info.bzl Added xlsynth_flags attribute and flag handling to ir_to_delay_info rule
ir_prove_equiv_test.bzl Added xlsynth_flags attribute and flag handling to ir_prove_equiv_test rule
dslx_to_sv_types.bzl Added xlsynth_flags attribute and flag handling to dslx_to_sv_types rule
dslx_to_pipeline_eco.bzl Added xlsynth_flags attribute and flag handling to dslx_to_pipeline_eco rule
dslx_to_pipeline.bzl Added xlsynth_flags attribute and flag handling to dslx_to_pipeline rule
dslx_to_ir.bzl Added xlsynth_flags attribute and flag handling to dslx_to_ir rule (both dslx2ir and ir2opt stages)
dslx_stitch_pipeline.bzl Added xlsynth_flags attribute and flag handling to dslx_stitch_pipeline rule

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Copy Markdown
Contributor

@cdleary cdleary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth a presubmit test to make sure we don't regress it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants