-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL] Remove manual diagnostic checking for stmt attrs. #3442
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
Conversation
Statement attributes now have automatic diagnostic checking, so let's use that. This does have a change in behavior in that passing the wrong number of arguments is now an error instead of a warning, but that behavior is more consistent with other attributes.
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
The Jenkins test failure is covered by: #8814 |
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.
Changes look good to me. Looks like there is a conflict in attr.td though.
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
FYI, I found one more cleanup that I'm in the process of testing out locally. I thought it was an upstream attribute but it turns out it's one of ours. Sorry for the noise on the review! |
Assuming CI is happy, that should be the last of the changes on this patch. I love seeing all that red with so little green. :-) |
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
@AaronBallman, we are still using /opt/1 for IVDEP attr and SYCLIntelFPGALoopCoalesce. Do we still need them? |
I think that's something we should investigate. It looks like we handle the case where no arguments are given (https://github.com/intel/llvm/blob/sycl/clang/lib/Sema/SemaStmtAttr.cpp#L272), but one thing that confuses me is the attribute takes three optional arguments when the semantic handler for it only ever seems to care about two of them. :-/ |
Btw, as best I can tell, the test failure in check-sycl is unrelated to my changes. |
Thanks for the explanation. May be we can create a new issue so that we do not forget about this. |
The problem has been addressed, so I restarted validation to confirm. |
Resolved merge conflict with #3388 - no functional changes. |
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
Statement attributes now have automatic diagnostic checking, so let's
use that. This does have a change in behavior in that passing the wrong
number of arguments is now an error instead of a warning, but that
behavior is more consistent with other attributes.