-
Notifications
You must be signed in to change notification settings - Fork 808
[Clang][SYCL] Fix dangling pointers and ODR violation in free functions #20422
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
Changes from 3 commits
7e043a9
2079eb2
d31600e
4df8683
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,14 +10,11 @@ | |
|
|
||
| #include <sycl/detail/export.hpp> | ||
|
|
||
| namespace sycl { | ||
| inline namespace _V1 { | ||
| namespace detail { | ||
| namespace { | ||
| namespace free_function_info_map { | ||
|
|
||
| __SYCL_EXPORT void add(const void *DeviceGlobalPtr, const char *UniqueId); | ||
| __SYCL_EXPORT void remove(const void *DeviceGlobalPtr, const char *UniqueId); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Were the changes in this file needed? (I understand it is the mock header, but I don't see this tested in SemaSYCL anywhere.)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @dklochkov-emb since this file was added in https://github.com/intel/llvm/pull/19517/files#diff-dfac134a49adec0ea0525b0941ce5b5e8b51c64e0692aae6c8f0105b9936106e, do you know how is it being used?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. as far as I know it is needed for SemaSYCL tests, i.e. it mocks real header. For example, test file contains |
||
|
|
||
| } // namespace free_function_info_map | ||
| } // namespace detail | ||
| } // namespace _V1 | ||
| } // namespace sycl | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.