Skip to content

[FIRRTL][SpecializeOption] Allow specialization of non-existent option#10158

Open
uenoku wants to merge 2 commits intollvm:mainfrom
uenoku:dev/hidetou/choice
Open

[FIRRTL][SpecializeOption] Allow specialization of non-existent option#10158
uenoku wants to merge 2 commits intollvm:mainfrom
uenoku:dev/hidetou/choice

Conversation

@uenoku
Copy link
Copy Markdown
Member

@uenoku uenoku commented Apr 8, 2026

This adds <option>?=<case> primitive to SpecializeOption that doesn't throw an error when there is no option. Also allows <default> as a valid a case name to specialize subset of options to default.

Unfortunately this was necessary because for example we want to always pass Platform=ASIC to the command line but it's very difficult to ensure Platform option always exists beforeahand.

@uenoku uenoku requested a review from prithayan April 8, 2026 22:23
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.

1 participant