Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
JuliaLang/julia#44389 removed `method_table(::AbstractInterpreter, ::InferenceState)` interface,
and now we should overload `method_table(::AbstractInterpreter)` instead.
  • Loading branch information
aviatesk committed Mar 3, 2022
1 parent 55ae222 commit d8df39f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/jlgen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,17 @@ end

@static if isdefined(Base.Experimental, Symbol("@overlay"))
using Core.Compiler: OverlayMethodTable
@static if VERSION >= v"1.9.0-DEV.120"
Core.Compiler.method_table(interp::GPUInterpreter) =
OverlayMethodTable(interp.world, interp.method_table)
else # @static if VERSION >= v"1.9.0-DEV.120"
Core.Compiler.method_table(interp::GPUInterpreter, sv::InferenceState) =
OverlayMethodTable(interp.world, interp.method_table)
else
end # @static if VERSION >= v"1.9.0-DEV.120"
else # @static if isdefined(Base.Experimental, Symbol("@overlay"))
Core.Compiler.method_table(interp::GPUInterpreter, sv::InferenceState) =
WorldOverlayMethodTable(interp.world)
end
end # @static if isdefined(Base.Experimental, Symbol("@overlay"))


## world view of the cache
Expand Down

0 comments on commit d8df39f

Please sign in to comment.