-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NFC: tidy up
InferenceState
definition (#45049)
This commit sorts its fields in order of their purpose, and refactor the main constructor accordingly. Also removed the `nargs::Int` field as it can be easily recovered and not used so often. Now it's defined as: ```julia mutable struct InferenceState #= information about this method instance =# linfo::MethodInstance world::UInt mod::Module sptypes::Vector{Any} slottypes::Vector{Any} src::CodeInfo #= intermediate states for local abstract interpretation =# currpc::Int ip::BitSetBoundedMinPrioritySet handler_at::Vector{Int} ssavalue_uses::Vector{BitSet} stmt_types::Vector{Union{Nothing, VarTable}} stmt_edges::Vector{Union{Nothing, Vector{Any}}} stmt_info::Vector{Any} #= interprocedural intermediate states for abstract interpretation =# pclimitations::IdSet{InferenceState} limitations::IdSet{InferenceState} cycle_backedges::Vector{Tuple{InferenceState, Int}} callers_in_cycle::Vector{InferenceState} dont_work_on_me::Bool parent::Union{Nothing, InferenceState} inferred::Bool #= results =# result::InferenceResult valid_worlds::WorldRange bestguess ipo_effects::Effects #= flags =# params::InferenceParams restrict_abstract_call_sites::Bool cached::Bool interp::AbstractInterpreter ... end ```
- Loading branch information
Showing
3 changed files
with
77 additions
and
85 deletions.
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
3cff21e
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.
Executing the daily package evaluation, I will reply here when finished:
@nanosoldier
runtests(ALL, isdaily = true)
3cff21e
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.
Your package evaluation job has completed - no new issues were detected. A full report can be found here.
3cff21e
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.
Executing the daily package evaluation, I will reply here when finished:
@nanosoldier
runtests(ALL, isdaily = true)
3cff21e
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.
Your package evaluation job has completed - possible issues were detected. A full report can be found here.