-
Notifications
You must be signed in to change notification settings - Fork 3
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
Include comments with template argument names in Cpp code from EmitC #403
base: feature/fused-ops
Are you sure you want to change the base?
Include comments with template argument names in Cpp code from EmitC #403
Conversation
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.
LGTM, thanks!
emitArgs))) | ||
return failure(); | ||
if (callOpaqueOp.getTemplateArgNames() && | ||
!callOpaqueOp.getTemplateArgNames()->empty()) { |
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.
I wonder whether we can remove the empty check here. We already know that they have the same number as template arguments (from the verifier).
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.
We made the default to be passing an empty AttrArray
to the build
method.
return emitOpError("number of template argument names must be equal to " | ||
"number of template arguments"); | ||
} | ||
} | ||
} |
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.
Can we please verify that we have no template arg names whenever we have no template args, and add a test for 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.
Added.
Thank you! I added a small comments, but looks good overall. |
Co-authored-by: Corentin Ferry <[email protected]> Co-authored-by: Matthias Gehre <[email protected]>
No description provided.