Skip to content

Commit

Permalink
rm unnecessary overloads
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Dec 14, 2022
1 parent bb0dbbb commit 53d5afd
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/abstractinterpret/abstractanalyzer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -558,10 +558,6 @@ CC.InferenceParams(analyzer::AbstractAnalyzer) = get_inf_params(analyzer)
CC.OptimizationParams(analyzer::AbstractAnalyzer) = get_opt_params(analyzer)
CC.get_world_counter(analyzer::AbstractAnalyzer) = get_world(analyzer)

# JET only works for runtime inference
CC.lock_mi_inference(::AbstractAnalyzer, ::MethodInstance) = nothing
CC.unlock_mi_inference(::AbstractAnalyzer, ::MethodInstance) = nothing

"""
NativeRemark <: InferenceErrorReport
Expand All @@ -578,10 +574,8 @@ function print_report_message(io::IO, (; s)::NativeRemark)
end
CC.add_remark!(analyzer::AbstractAnalyzer, sv::InferenceState, s) = ReportPass(analyzer)(NativeRemark, sv, s) # ignored by default

CC.may_optimize(analyzer::AbstractAnalyzer) = true
CC.may_compress(analyzer::AbstractAnalyzer) = false
CC.may_discard_trees(analyzer::AbstractAnalyzer) = false
CC.verbose_stmt_info(analyzer::AbstractAnalyzer) = false

let # overload `inlining_policy`
@static if isdefined(CC, :CallInfo)
Expand Down

0 comments on commit 53d5afd

Please sign in to comment.