-
Notifications
You must be signed in to change notification settings - Fork 769
[SYCL][ESIMD] Fix ESIMD private global detection. #1909
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
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 would expect some test and problem explanation.
Actually, this was a bug introduced in this change. |
This fix is required for #1854 to work.
Unfortunately, I can't write the test for it, since the SIMD runtime library itself is not merged (#1853 - #1856). |
Seems like diagnostic that you mentioned points to standard C++ headers. I think you don't need SIMD runtime library to write similar code in test and check that there is no diagnostics emitted. |
e4f3d05
to
a5bd5a2
Compare
Ok. I added test. |
a5bd5a2
to
a05a42e
Compare
@DenisBakhvalov
|
@kbobrovs the issue can be seen even on STL headers: |
I don't mind, but it is FE code owners' call. As I recall usual practice is adding FE-only test not depending on other components when fixing FE code if possible. |
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.
The Sema.h fix looks OK (brings it to the state we have internally, known to work fine).
Each component needs it's own unit tests. Once you do change in FE, you need to add a FE-only test not depending on other components, including SYCL headers. |
// TODO: this a temporary test. | ||
// Remove it after SIMD library is merged. |
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.
Please make it FE-only, non-temporary test.
@@ -0,0 +1,10 @@ | |||
// RUN: %clangxx -fsycl -fsycl-explicit-simd -fsycl-device-only -fsyntax-only -Xclang -verify %s |
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 don't usually use clang driver in FE tests.
// RUN: %clangxx -fsycl -fsycl-explicit-simd -fsycl-device-only -fsyntax-only -Xclang -verify %s | |
// RUN: %clangxx -cc1 -fsycl -fsycl-is-device -fsycl-explicit-simd -fsyntax-only -verify %s |
Signed-off-by: Denis Bakhvalov <denis.bakhvalov@intel.com>
fce8190
a05a42e
to
fce8190
Compare
Signed-off-by: Denis Bakhvalov denis.bakhvalov@intel.com