-
Notifications
You must be signed in to change notification settings - Fork 33
Ref ptr fix #698
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
Ref ptr fix #698
Conversation
src/Tracing.jl
Outdated
| end | ||
| end | ||
|
|
||
| @eval Base.@nospecializeinfer function traced_type_inner( |
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.
No need for @eval here, right?
src/Tracing.jl
Outdated
| end | ||
|
|
||
| @eval Base.@nospecializeinfer function traced_type_inner( | ||
| @nospecialize(PT::Type{Core.LLVMPtr{T, A}}) |
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.
Also, I'm not sure this would work, I had tried doing something like this and just using T in the body of the function instead of PT.parameters[1], but it doesn't work (I supposed because this is a @nospecialize argument)
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.
no the reason T in the function doesn't work is due to JuliaLang/julia#57259 sadly.
Essentially we have LLVMPtr{TypeVar, TypeVar} and julia doesn't properly match that (see the issue)
|
Uhm https://github.com/EnzymeAD/Reactant.jl/actions/runs/13182934372/job/36798051681?pr=698#step:9:581 |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Resolves #696