-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Fixes for julia v1.10 #109
Fixes for julia v1.10 #109
Conversation
Codecov ReportPatch coverage:
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## master #109 +/- ##
==========================================
- Coverage 74.98% 74.64% -0.34%
==========================================
Files 15 15
Lines 1419 1428 +9
==========================================
+ Hits 1064 1066 +2
- Misses 355 362 +7
☔ View full report in Codecov by Sentry. |
@static if VERSION < v"1.8.0-DEV.267" | ||
@static if VERSION >= v"1.10.0-DEV.870" | ||
function replace_code_newstyle!(ci, ir, _) | ||
return Core.Compiler.replace_code_newstyle!(ci, ir) |
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.
you also might need to allocate slottypes, if you didn't already do that
ci.slottypes isa Array || (ci.slottypes = [])
Co-Authored-By: Jameson Nash <vtjnash+github@gmail.com>
28fd6ae
to
eb8bfd5
Compare
src/reflection/reflection.jl
Outdated
end | ||
Base.Meta.partially_inline!(ci.code, [], method.sig, Any[sps...], 0, 0, :propagate) | ||
Meta(method, mi, ci, method.nargs, sps) | ||
end | ||
|
||
function invoke_tweaks!(ci::CodeInfo) | ||
ci.slottypes = [:todo, ci.slottypess[1], :todo, ci.slottypes[2:end]...] |
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 didn't know what to put here where there is :todo
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've gone with
ci.slottypes = [typeof(invoke), ci.slottypess[1], Type, ci.slottypes[2:end]...]
I think I've done all the obvious stuff here. Seems like it needs someone with more IRTools knowledge |
Oh, it is using APIs that Base doesn't have anymore and need to be converted to the new API |
Here's with those APIs fixed: master...maleadt:IRTools.jl:replace_code_newstyle_fix Only a couple of test failures remain. |
Co-Authored-By: Tim Besard <383068+maleadt@users.noreply.github.com>
668530f
to
6666ab0
Compare
Is because https://github.com/IanButterworth/IRTools.jl/blob/668530fb38ca20678e0934efb3b74d93d8711925/test/compiler.jl#L80 is returning as nothing because https://github.com/IanButterworth/IRTools.jl/blob/6666ab00735fd52b73161c7fdf8755b8c4501a9c/src/ir/wrap.jl#L157-L158 is returning nothing. Might this be related to Jameson's comment here f401a95#r111498985 @maleadt ? Also, Zygote still fails to load with this in its current form, |
Appears to be a world age issue
|
No, that's unrelated. The problem is that |
Updated my fork; it passes tests now. |
Great! Although Zygote still fails to precompile on https://github.com/FluxML/Zygote.jl/blob/2287a86d1692c0dfc568739a80ca909199f6adfe/src/precompile.jl#LL17C20-L17C20 But perhaps that shouldn't stop this being merged and released?
|
I pushed another fix to my branch. Some initial fixes for Zygote.jl are in https://github.com/maleadt/Zygote.jl/tree/dev, depending on this PR. This makes Zygote precompile and makes a smoke test |
It would be good to get this released |
@IanButterworth Can you merge the latest version of my branch? |
I believe this branch is up to date with yours? |
Ah yes, the GitHub UI is confusing here. Can we get this (squash-)merged and tagged then? @CarloLucibello @ToucheSir |
Proposed fix for #108
Includes the fix from #112 to try and get CI green
@vtjnash