Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ExtractInstances] Add the extract instances metadata to OM Classes #7667

Merged
merged 9 commits into from
Oct 11, 2024

Conversation

prithayan
Copy link
Contributor

This change adds the ExtractInstances metadata to the OM classes. The OM dialect can then be parsed to generate the respective metadata files.
This change enables to move all the metadata to the OM dialect, instead of existing as verbatim ops.

@prithayan prithayan requested review from mikeurbach and removed request for seldridge and darthscsi October 4, 2024 21:57
@prithayan prithayan force-pushed the dev/pbarua/extract-instances-metadata branch from 1b83ab2 to 9dc5943 Compare October 6, 2024 14:58
Copy link
Contributor

@mikeurbach mikeurbach left a comment

Choose a reason for hiding this comment

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

The gist of this looks good, just some minor suggestions and questions.

include/circt/Dialect/FIRRTL/FIRRTLUtils.h Outdated Show resolved Hide resolved
lib/Dialect/FIRRTL/Transforms/ExtractInstances.cpp Outdated Show resolved Hide resolved
lib/Dialect/FIRRTL/Transforms/ExtractInstances.cpp Outdated Show resolved Hide resolved
@prithayan prithayan force-pushed the dev/pbarua/extract-instances-metadata branch from 9dc5943 to fca36c1 Compare October 9, 2024 14:40
@prithayan prithayan force-pushed the dev/pbarua/extract-instances-metadata branch from 395be6e to 568c7fc Compare October 10, 2024 15:41
@prithayan
Copy link
Contributor Author

@mikeurbach , @uenoku, this PR is ready for another round of review, please take a look.

Comment on lines 364 to 369
// This builds a ClassOp, with the specified fieldNames and fieldTypes as
// ports. The output property is set from the input property port.
ClassOp static buildSimpleClassOp(
mlir::OpBuilder &odsBuilder, mlir::Location loc, mlir::Twine name,
mlir::ArrayRef<mlir::StringRef> fieldNames,
mlir::ArrayRef<mlir::Type> fieldTypes);
Copy link
Member

Choose a reason for hiding this comment

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

Can it be moved to the section let builders = [..]?

Copy link
Contributor

@mikeurbach mikeurbach left a comment

Choose a reason for hiding this comment

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

A few more minor comments from me, but I think this is looking good.

include/circt/Dialect/FIRRTL/FIRRTLStructure.td Outdated Show resolved Hide resolved
include/circt/Dialect/FIRRTL/FIRRTLUtils.h Outdated Show resolved Hide resolved
lib/Dialect/FIRRTL/Transforms/ExtractInstances.cpp Outdated Show resolved Hide resolved
lib/Dialect/FIRRTL/Transforms/ExtractInstances.cpp Outdated Show resolved Hide resolved
@prithayan prithayan merged commit d92ed27 into main Oct 11, 2024
4 checks passed
@prithayan prithayan deleted the dev/pbarua/extract-instances-metadata branch October 11, 2024 15:58
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.

3 participants