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

[FIRRTL] Reject unsupported port symbols on instance + class ops. #5796

Merged

Conversation

dtzSiFive
Copy link
Contributor

Fixes #5788.

@dtzSiFive dtzSiFive force-pushed the fix/no-port-syms-on-instances-and-class branch from da1576e to 95fb34d Compare August 8, 2023 12:49
Copy link
Member

@uenoku uenoku left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -1463,9 +1466,10 @@ ParseResult ClassOp::parse(OpAsmParser &parser, OperationState &result) {
SmallVector<Attribute, 4> portAnnotations;
SmallVector<Attribute, 4> portSyms;
Copy link
Member

Choose a reason for hiding this comment

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

It would be nice if we don't have to declare portSyms but the current implementation makes sense (maybe we can use std::optinal<SmallVectorImpl<Attribute>&> but would be messier).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed! With all the in-flight module/port reworkings I vote leave this as-is and revisit in a bit. But yes this could be improved!

@dtzSiFive
Copy link
Contributor Author

Thank you!

@dtzSiFive dtzSiFive merged commit faf03b8 into llvm:main Aug 8, 2023
5 checks passed
@dtzSiFive dtzSiFive deleted the fix/no-port-syms-on-instances-and-class branch August 8, 2023 16:40
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.

[FIRRTL] InstanceOp MLIR parser should reject port symbols (unsupported)
2 participants