Skip to content

Conversation

@prithayan
Copy link
Contributor

This PR adds the FlattenModules pass invocation to the FIRRTLToHW pipeline.

Changes in this PR:

  • Add --enable-hw-flatten-modules flag to control the pass, defaulting to disabled
  • Expose all 8 FlattenModules options with --hw-inline-empty defaulting to true
  • Added comprehensive lit test with 6 test cases covering all major options

- Invoke hw::createFlattenModules after createSimpleCanonicalizerPass
- Add --enable-hw-flatten-modules flag to enable the pass
- Expose all FlattenModules options: inline-empty (default: true), inline-no-outputs, inline-single-use, inline-small, small-threshold, inline-with-state, inline-all
- Add comprehensive lit test covering all options
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.

2 participants