Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Have Flatten & InlineInstances remove their annotations #2374

Merged
merged 2 commits into from
Sep 29, 2021

Conversation

davidbiancolin
Copy link
Contributor

Compilers that run InlineInstances multiple times would attempt to re-inline modules that no longer exist. It's possible that something may depend on these annotations after they've run -- if that's the case, I can define a new output annotation to avoid this problem.

Should i add tests to check these passes remove their annotations, or is this sufficient?

Contributor Checklist

  • Did you add Scaladoc to every public function/method?
  • Did you update the FIRRTL spec to include every new feature/behavior?
  • Did you add at least one test demonstrating the PR?
  • Did you delete any extraneous printlns/debugging code?
  • Did you specify the type of improvement?
  • Did you state the API impact?
  • Did you specify the code generation impact?
  • Did you request a desired merge strategy?
  • Did you add text to be included in the Release Notes for this change?

Type of Improvement

  • bug fix

API Impact

No change.

Backend Code Generation Impact

No change.

Desired Merge Strategy

Squash.

Release Notes

Have Flatten & InlineInstances remove their annotations after invocation.

Reviewer Checklist (only modified by reviewer)

  • Did you add the appropriate labels?
  • Did you mark the proper milestone (1.2.x, 1.3.0, 1.4.0) ?
  • Did you review?
  • Did you check whether all relevant Contributor checkboxes have been checked?
  • Did you mark as Please Merge?

Copy link
Contributor

@ekiwi ekiwi left a comment

Choose a reason for hiding this comment

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

LGTM

@ekiwi
Copy link
Contributor

ekiwi commented Sep 29, 2021

@davidbiancolin Is it enough to just get this into the next release (1.5) or do you need this fix to be available in 1.4?

@davidbiancolin
Copy link
Contributor Author

1.5 is fine by me. :)

@ekiwi ekiwi added this to the 1.5.0 milestone Sep 29, 2021
@ekiwi ekiwi added the Please Merge Accepted PRs that are ready to be merged. Useful when waiting on CI. label Sep 29, 2021
@mergify mergify bot merged commit b81de69 into master Sep 29, 2021
@davidbiancolin davidbiancolin deleted the clean-inline-annotations branch September 29, 2021 20:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Please Merge Accepted PRs that are ready to be merged. Useful when waiting on CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants