Skip to content

[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

Merged
merged 9 commits into from
Apr 6, 2021

Conversation

AaronBallman
Copy link
Contributor

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.

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.
smanna12
smanna12 previously approved these changes Mar 30, 2021
Copy link
Contributor

@smanna12 smanna12 left a comment

Choose a reason for hiding this comment

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

LGTM

@AaronBallman
Copy link
Contributor Author

The Jenkins test failure is covered by: #8814

Copy link
Contributor

@premanandrao premanandrao left a 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.

smanna12
smanna12 previously approved these changes Mar 31, 2021
premanandrao
premanandrao previously approved these changes Mar 31, 2021
Copy link
Contributor

@premanandrao premanandrao left a comment

Choose a reason for hiding this comment

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

LGTM

@AaronBallman
Copy link
Contributor Author

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!

@AaronBallman
Copy link
Contributor Author

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. :-)

premanandrao
premanandrao previously approved these changes Mar 31, 2021
Copy link
Contributor

@premanandrao premanandrao left a comment

Choose a reason for hiding this comment

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

LGTM

@smanna12
Copy link
Contributor

smanna12 commented Mar 31, 2021

@AaronBallman, we are still using /opt/1 for IVDEP attr and SYCLIntelFPGALoopCoalesce. Do we still need them?

@AaronBallman
Copy link
Contributor Author

@AaronBallman, we are still using /opt/1 for IVDEP attr. Do we still need this?

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. :-/

@AaronBallman
Copy link
Contributor Author

Btw, as best I can tell, the test failure in check-sycl is unrelated to my changes.

@smanna12
Copy link
Contributor

@AaronBallman, we are still using /opt/1 for IVDEP attr. Do we still need this?

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. :-/

Thanks for the explanation. May be we can create a new issue so that we do not forget about this.

smanna12
smanna12 previously approved these changes Apr 1, 2021
@bader
Copy link
Contributor

bader commented Apr 1, 2021

Btw, as best I can tell, the test failure in check-sycl is unrelated to my changes.

The problem has been addressed, so I restarted validation to confirm.

@bader bader dismissed stale reviews from smanna12 and premanandrao via a81aeac April 1, 2021 17:43
@bader
Copy link
Contributor

bader commented Apr 1, 2021

Resolved merge conflict with #3388 - no functional changes.

Copy link
Contributor

@premanandrao premanandrao left a comment

Choose a reason for hiding this comment

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

LGTM

@bader bader merged commit b141285 into intel:sycl Apr 6, 2021
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.

4 participants