Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Aug 28, 2024
1 parent 02e3a2b commit a9aacf3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/analyzers/jetanalyzer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ given that the number of matching methods are limited beforehand.
"""
CC.bail_out_call(::JETAnalyzer, ::CC.InferenceLoopState, ::InferenceState) = false

struct __DummyConcrete__ end
struct __DummyRettype__ end

"""
Core.Compiler.add_call_backedges!(analyzer::JETAnalyzer, ...)
Expand All @@ -265,8 +265,8 @@ function CC.add_call_backedges!(
edges::Vector{MethodInstance}, matches::Union{MethodMatches,UnionSplitMethodMatches}, @nospecialize(atype),
sv::InferenceState)
return @invoke CC.add_call_backedges!(
# NOTE this `__DummyConcrete__` hack forces `add_call_backedges!(::AbstractInterpreter,...)` to add backedges
analyzer::AbstractInterpreter, __DummyConcrete__::Any, effects::CC.Effects,
# NOTE this `__DummyRettype__()` hack forces `add_call_backedges!(::AbstractInterpreter,...)` to add backedges
analyzer::AbstractInterpreter, __DummyRettype__()::Any, effects::CC.Effects,
edges::Vector{MethodInstance}, matches::Union{MethodMatches,UnionSplitMethodMatches}, atype::Any,
sv::InferenceState)
end
Expand Down
2 changes: 1 addition & 1 deletion src/toplevel/virtualprocess.jl
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ These configurations will be active for all the top-level entries explained in t
concrete call sites will produce more accurate results than analysis entered from
(maybe not concrete-typed) method signatures.
Also see: [`report_file`](@ref), [`watch_file`](@ref)
Also see: [`report_file`](@ref), [`watch_file`](@ref), [`report_package`](@ref)
---
- `concretization_patterns::Vector{Any} = Any[]` \\
Specifies a customized top-level code concretization strategy.
Expand Down

0 comments on commit a9aacf3

Please sign in to comment.