-
Notifications
You must be signed in to change notification settings - Fork 772
[SYCL][RTC] Rename property to registered_names
#17266
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
[SYCL][RTC] Rename property to registered_names
#17266
Conversation
Context: gmlueck#2 (comment) |
Signed-off-by: Julian Oppermann <julian.oppermann@codeplay.com>
3dc2353
to
0717026
Compare
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.
@gmlueck is on sabbatical, but the specification change here seems to be in keeping with comments he's made elsewhere, and looks good to me, so I'll approve.
This property is useful when the source language represents names differently in | ||
the source code and the generated code. | ||
For example, {cpp} function names in the generated code are "mangled" in an | ||
implementation-defined way. |
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.
Nit: It might be useful to give another example here of names that are mangled, to make it clear that this behavior is not unique to functions. Something as simple as "{cpp} function names and the names of static variables at global scope", maybe?
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 like that; added.
Signed-off-by: Julian Oppermann <julian.oppermann@codeplay.com>
@intel/llvm-gatekeepers Please merge, thanks! |
Renames the
registered_kernel_names
property to justregistered_names
. The rationale is to prepare thekernel_compiler
extension to support device globals in the future, for which we'll need help from the frontend to resolve source code names to mangled symbol names, in the same way we currently handle kernel names.Note: This PR only changes the user-facing property, whereas the implementation continues to use the similarly-named but independent
__sycl_detail__::__registered_kernels__
attribute,!sycl_registered_kernels
named metdata and[SYCL/registered kernels]
property set internally.