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

AbstractInterpreter: remove method_table(::AbstractInterpreter, ::InferenceState) interface #44389

Merged
merged 2 commits into from
Mar 3, 2022

Conversation

aviatesk
Copy link
Member

@aviatesk aviatesk commented Mar 1, 2022

In #44240 we removed the CachedMethodTable support as it turned out to
be ineffective under the current compiler infrastructure.
Because of this, there is no strong reason to keep a method table per InferenceState.
This commit simply removes the method_table(::AbstractInterpreter, ::InferenceState)
interface and should make it clearer which interface needs to be overloaded to
implement a contextual dispatch.

@aviatesk aviatesk force-pushed the avi/methodtable branch 2 times, most recently from 7332682 to 89afc0f Compare March 1, 2022 11:10
…InferenceState)` interface

In #44240 we removed the `CachedMethodTable` support as it turned out to
be ineffective under the current compiler infrastructure.
Because of this, there is no strong reason to keep a method table per `InferenceState`.
This commit simply removes the `method_table(::AbstractInterpreter, ::InferenceState)`
interface and should make it clearer which interface should be overloaded to
implement a contextual dispatch.
@aviatesk
Copy link
Member Author

aviatesk commented Mar 2, 2022

@nanosoldier runbenchmarks("inference", vs=":master")

@nanosoldier
Copy link
Collaborator

Your benchmark job has completed - no performance regressions were detected. A full report can be found here.

@aviatesk aviatesk merged commit 8800a80 into master Mar 3, 2022
@aviatesk aviatesk deleted the avi/methodtable branch March 3, 2022 01:31
aviatesk added a commit to aviatesk/GPUCompiler.jl that referenced this pull request Mar 3, 2022
JuliaLang/julia#44389 removed `method_table(::AbstractInterpreter, ::InferenceState)` interface,
and now we should overload `method_table(::AbstractInterpreter)` instead.
aviatesk added a commit to aviatesk/GPUCompiler.jl that referenced this pull request Mar 3, 2022
JuliaLang/julia#44389 removed `method_table(::AbstractInterpreter, ::InferenceState)` interface,
and now we should overload `method_table(::AbstractInterpreter)` instead.
aviatesk added a commit to aviatesk/GPUCompiler.jl that referenced this pull request Mar 3, 2022
JuliaLang/julia#44389 removed `method_table(::AbstractInterpreter, ::InferenceState)` interface,
and now we should overload `method_table(::AbstractInterpreter)` instead.
aviatesk added a commit to aviatesk/GPUCompiler.jl that referenced this pull request Mar 3, 2022
JuliaLang/julia#44389 removed `method_table(::AbstractInterpreter, ::InferenceState)` interface,
and now we should overload `method_table(::AbstractInterpreter)` instead.
maleadt pushed a commit to JuliaGPU/GPUCompiler.jl that referenced this pull request Mar 3, 2022
Upstream removed `method_table(::AbstractInterpreter, ::InferenceState)`,
and now we should overload `method_table(::AbstractInterpreter)` instead.
aviatesk added a commit to JuliaDebug/Cthulhu.jl that referenced this pull request Mar 3, 2022
The `method_table` interface changed by that PR.
Cthulhu doesn't need to overload it from the first place.
aviatesk added a commit to JuliaDebug/Cthulhu.jl that referenced this pull request Mar 3, 2022
The `method_table` interface changed by that PR.
Cthulhu doesn't need to overload it from the first place.
aviatesk added a commit that referenced this pull request Mar 9, 2022
…InferenceState)` interface (#44389)

In #44240 we removed the `CachedMethodTable` support as it turned out to
be ineffective under the current compiler infrastructure.
Because of this, there is no strong reason to keep a method table per `InferenceState`.
This commit simply removes the `method_table(::AbstractInterpreter, ::InferenceState)`
interface and should make it clearer which interface should be overloaded to
implement a contextual dispatch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants