-
Notifications
You must be signed in to change notification settings - Fork 796
[NFCI][SYCL] Consolidate [get|create]SyclObj[From]Impl into ImplUtils
#20798
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
This way much less `friend` declarations are needed.
[get|create]SyclObj[From]Impl into ImplUtils`[get|create]SyclObj[From]Impl into ImplUtils
aelovikov-intel
left a comment
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.
With that, I'm not even sure if detail::ObjBase is necessary... However, even if it is, it would be easier to introduce it on top of this PR.
| std::add_lvalue_reference_t<typename std::remove_reference_t< | ||
| decltype(getSyclObjImpl(std::declval<T>()))>::element_type> | ||
| ImplRef) { |
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.
Technically, I could preserve this SFINAE logic but I don't see much value in doing that.
adamfidel
left a comment
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.
Graph changes make sense. They are in line with the changes to the rest of the files.
steffenlarsen
left a comment
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.
Massive improvement. Good thinking! 🚀
This way much less
frienddeclarations are needed.