-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: Validate TypeArgs to ExtensionOp #509
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ea11aaf
Validate TypeArgs to ExtensionOp. Is there any point?
acl-cqc f8f45bb
Add check that args match params...redundant?
acl-cqc aee2254
Revert "Add check that args match params...redundant?"
acl-cqc c2db98c
validate_children => validate_op_children
acl-cqc 0019e8b
validate_operation => validate_children
acl-cqc 1573c0b
Update comment, issue link
acl-cqc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Methinks
validate_operation
is not a good name, given there's already other validation of the operation here in validate_node. Rather, validate_operation is all about the op's children. Howevervalidate_children
is already taken (as a subset of those child-validating checks), so the best renaming I can see would be along the lines ofvalidate_children
->validate_children_op_specific
or somethingvalidate_operation
->validate_children
If anyone can think of a good name for the or something then I'm happy to proceed with that ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uhm. I guess the
OpValidityFlags
are focused on a container's children.I'd say rename that to
OpContainerFlags
(?) andValidateOp::validate_children
torun_children_validator
?(on top of your 2. )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, gone with
validate_children
->validate_op_children
(my #1, your #2 - the onlyvalidate_children
was that defined in ValidateOp), andvalidate_operation
->validate_children
.I've left OpValidityFlags because it does have one member that is not related to children -
non_df_port
. I think we were talking about refactoring non-dataflow-ports more widely, so ifnon_df_port
goes as part of that refactor.... (as perhaps it should:non_df_port
doesn't appear to be used in validation, but rather inpub
functions ofOpType
:other_port_count
andport_index
....)Happy to move these two renames into a separate PR if you like, I was going to when I thought there'd be 4 but I haven't bothered at the moment since it looks like there are only 2.