Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mikeurbach
Copy link
Contributor

This was used in the old legacy OMIR JSON system. Now that is gone, we don't need to support this annotation. Furthermore, the canBeDeleted logic on annotations will always return false, since we don't actually see this annotation any more. That means we can just get rid of that method, and fix up all the call sites to reflect the fact that it would have always returned false.

mikeurbach added a commit that referenced this pull request Nov 26, 2024
This legacy system for representing an object model has been replaced
by FIRRTL classes, objects, and properties. This removes the old
system completely.

The main change is removing the EmitOMIR pass completely, but there
are several other things related to OMIR JSON to clean up. This
includes command line options and annotations for specifying input and
output OMIR JSON, as well as support for parsing the JSON and
scattering OMIR tracker annotations. Any tests related to the above
were also removed.

The only remaining legacy OMIR feature is the OMIRTracker annotation,
which is currently used in some canBeDeleted logic on annotations in
folders, IMDCE, etc. This is being separated, and removed in this PR:
#7908.
Base automatically changed from mikeurbach/remove-emit-omir to main November 26, 2024 23:42
@seldridge seldridge force-pushed the mikeurbach/remove-omir-tracker branch from b38306e to d2dcbb3 Compare November 27, 2024 04:11
@seldridge seldridge marked this pull request as ready for review November 27, 2024 04:17
seldridge and others added 3 commits November 26, 2024 23:26
Change the behavior of how annotations work such that now _all_
annotations are interpreted by passes as blocking optimizations or
removal.  This is in preparation to rip out the last of the OMIR Tracker
annotations which had some flavors which would not block optimizations.

Co-authored-by: Mike Urbach <[email protected]>
Signed-off-by: Schuyler Eldridge <[email protected]>
Remove the OMIRTracker annotation.  This is now no longer load-bearing.

Co-authored-by: Mike Urbach <[email protected]>
Signed-off-by: Schuyler Eldridge <[email protected]>
Change Annotation handling behavior so that no annotation can be deleted.
Previously, there existed a method that would report if an annotation
could be deleted.  However, now that the only annotation that had this
semantic, OMIRTracker, is gone, this method is now always `false` for a
single annotation and equivalent to `empty` for an `AnnotationSet`.  Use
these simpler functions instead and delete the `canBeDeleted` functions.

Co-authored-by: Mike Urbach <[email protected]>
Signed-off-by: Schuyler Eldridge <[email protected]>
@seldridge seldridge force-pushed the mikeurbach/remove-omir-tracker branch from d2dcbb3 to 09fc391 Compare November 27, 2024 04:28
@seldridge seldridge merged commit 09fc391 into main Nov 27, 2024
2 checks passed
@seldridge seldridge deleted the mikeurbach/remove-omir-tracker branch November 27, 2024 04:28
@mikeurbach
Copy link
Contributor Author

Thanks for pushing this through!

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