Skip to content
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

remove CachedMethodTable #296

Merged
merged 1 commit into from
Feb 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/jlgen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ end

## interpreter

using Core.Compiler: AbstractInterpreter, InferenceResult, InferenceParams, InferenceState,
OptimizationParams, CachedMethodTable
using Core.Compiler:
AbstractInterpreter, InferenceResult, InferenceParams, InferenceState, OptimizationParams

struct GPUInterpreter <: AbstractInterpreter
global_cache::CodeCache
Expand Down Expand Up @@ -220,17 +220,17 @@ end
Core.Compiler.may_optimize(interp::GPUInterpreter) = true
Core.Compiler.may_compress(interp::GPUInterpreter) = true
Core.Compiler.may_discard_trees(interp::GPUInterpreter) = true
if VERSION >= v"1.7.0-DEV.577"
@static if VERSION >= v"1.7.0-DEV.577"
Core.Compiler.verbose_stmt_info(interp::GPUInterpreter) = false
end

if isdefined(Base.Experimental, Symbol("@overlay"))
@static if isdefined(Base.Experimental, Symbol("@overlay"))
using Core.Compiler: OverlayMethodTable
Core.Compiler.method_table(interp::GPUInterpreter, sv::InferenceState) =
CachedMethodTable(OverlayMethodTable(interp.world, interp.method_table))
OverlayMethodTable(interp.world, interp.method_table)
else
Core.Compiler.method_table(interp::GPUInterpreter, sv::InferenceState) =
CachedMethodTable(WorldOverlayMethodTable(interp.world))
WorldOverlayMethodTable(interp.world)
end


Expand Down