-
Notifications
You must be signed in to change notification settings - Fork 3
try to fix 1.7 #6
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
Codecov Report
@@ Coverage Diff @@
## master #6 +/- ##
==========================================
- Coverage 86.41% 85.43% -0.98%
==========================================
Files 8 9 +1
Lines 471 515 +44
==========================================
+ Hits 407 440 +33
- Misses 64 75 +11
Continue to review full report at Codecov.
|
somehow the following case doesn't work anymore code_ircode(sin, (Float64, ); interp=NativeInterpreter()) |
@aviatesk mind take a second look if the fix is correct? |
@@ -0,0 +1,3 @@ | |||
@static if VERSION < v"1.7-" |
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.
Just drop a support for v1.6...?
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'm not sure if I can get YaoCompiler working again this weekend, so I think I'll probably try to keep the first version compatible with 1.6 then deprecate it
@@ -48,24 +48,39 @@ Return the `IRCode` object along with inferred return type. | |||
function code_ircode_by_mi(f, mi::MethodInstance; world=get_world_counter(), interp=NativeInterpreter(world)) |
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.
f
seems to be dead argument
# passes | ||
ir = f(ir, opt) | ||
opt.src.inferred = true | ||
ir = f(ir, sv) |
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.
@aviatesk f
is used here, it kinda allow custom IRCode
transform from this reflection function since the run_passes
function is not called here and is replaced by the default_julia_passes
function, so that I can put my own passes using the do ... end
syntax to test with
I guess the rest looks good then? I'll merge this first. |
No description provided.