-
-
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
Merged
CarloLucibello
merged 15 commits into
FluxML:master
from
IanButterworth:ib/replace_code_newstyle_fix
May 10, 2023
Merged
Changes from 3 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
1850a5c
fix replace_code_newstyle! on 1.10
IanButterworth 92f80db
fix from #112
IanButterworth eb8bfd5
add world to get_staged
IanButterworth 8d90f12
try some types
IanButterworth b6a1371
fix older get_staged
IanButterworth 68b9fa5
only set slotypes on 1.10
IanButterworth f9419c2
initialize slottypes as a Vector{Any} if nothing
IanButterworth f401a95
Adapt to change in generated functions.
IanButterworth 6666ab0
unmark test as broken on julia v1.10
IanButterworth 185a1f2
No need to use the generated world when constructing from IR.
maleadt d278705
Spoof the current world to make dynamos work without a breaking API c…
maleadt 59b323c
Fix typo.
maleadt 9553b04
Don't copy slottypes if they aren't set.
maleadt 2ba04f5
Re-mark test broken.
maleadt 8d5a4f9
Generate stub for every non-CI.
maleadt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,7 @@ function slots!(ci::CodeInfo) | |
function f(x) | ||
x isa Slot || return x | ||
haskey(ss, x) && return ss[x] | ||
push!(ci.slottypes, x.type) | ||
push!(ci.slotnames, x.id) | ||
push!(ci.slotflags, 0x00) | ||
ss[x] = SlotNumber(length(ci.slotnames)) | ||
|
@@ -128,7 +129,11 @@ function splicearg!(ir::IR) | |
return arg | ||
end | ||
|
||
@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 commentThe 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
|
||
end | ||
elseif VERSION < v"1.8.0-DEV.267" | ||
function replace_code_newstyle!(ci, ir, n_argtypes) | ||
return Core.Compiler.replace_code_newstyle!(ci, ir, n_argtypes-1) | ||
end | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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