-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Take purity modeling seriously #43852
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
2b87116
Implement new effect system
Keno bfa17ba
Make INV_2PI a tuple
Keno aaeb0d2
Evalute :total function in the proper world
Keno 405a4f8
Finish effects implementation for ccall
Keno 7bbf411
Add missing `esc`
Keno c5f3804
Actually make use of terminates_locally override
Keno d821b5a
Mark ^(x::Float64, n::Integer) as locally terminating
Keno 2f4c092
Shove effects into calling convention field
Keno b9d6a21
Make inbounds taint consistency
Keno c3fceed
Allow constprop to refine effects
Keno 7f14975
Properly taint unknown call in apply
Keno 4b506e5
Add NEWS and doc anchor
Keno c2ba653
Correct effect modeling for arraysize
Keno 012d762
Address Shuhei's review
Keno c25f4de
Fix regression on inference time benchmark
Keno bfeaf3e
refine docstrings of `@assume_effects`
aviatesk f0b081b
improve effect analysis on allocation
aviatesk 511ddfa
address some reviews
aviatesk ab90932
Address Jameson's review feedback
Keno b30e99c
Fix tests - address rebase issues
Keno 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
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 |
---|---|---|
|
@@ -733,3 +733,7 @@ name, if desired `"libglib-2.0".g_uri_escape_string(...` | |
macro ccall(expr) | ||
return ccall_macro_lower(:ccall, ccall_macro_parse(expr)...) | ||
end | ||
|
||
macro ccall_effects(effects, expr) | ||
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. Can you add a comment that this is used internally by |
||
return ccall_macro_lower((:ccall, effects), ccall_macro_parse(expr)...) | ||
end |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.
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.
@nospecialize
is probably not allowed here?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 mean because of where it is in bootstrap or syntax wise? It worked and fixed the inference time issue, so that wasn't a problem.