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

Skip to content

Conversation

@mikeurbach
Copy link
Contributor

@mikeurbach mikeurbach commented 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.

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 by ResolvePaths and several passes. As we
rolled out the FIRRTL property support, we chose to re-use this
annotation for representing targets, so this is the one piece of the
old system that we have to keep for now.
Copy link
Member

@seldridge seldridge left a comment

Choose a reason for hiding this comment

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

Awesome. If there's any residue after this I am more than happy to deal with it.

constexpr const char *omirFileAnnoClass =
"freechips.rocketchip.objectmodel.OMIRFileAnnotation";
constexpr const char *omirTrackerAnnoClass =
"freechips.rocketchip.objectmodel.OMIRTracker";
Copy link
Member

Choose a reason for hiding this comment

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

This can also go. If you don't handle it in this PR, I can deal with with it in a follow-on.

This does mean that the shouldBeDeleted (or can be) function needs to be updated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, I'll pull this thread

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is now going deeper than I wanted... I'm starting to look at the changes to IMDCE and I'm nervous I've missed something... So, I broke it out and I've sent a draft PR here, based on this branch for now: #7908

@mikeurbach mikeurbach merged commit af4b15a into main Nov 26, 2024
4 checks passed
@mikeurbach mikeurbach deleted the mikeurbach/remove-emit-omir branch November 26, 2024 23:42
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