forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AbstractInterpreter] Implement callbacks for cache invalidations (Ju…
…liaLang#38370) AbstractInterpreter allows down-stream compiler variants to implement their own caching of inference results. This leads to the issue of that invalidations of methods are not propagated to those caches, leaving downstream implementations with their own variant of 265, with limited ability to mitigate it. This PR extends the invalidation scheme by allowing downstream implementation to attach invalidation callbacks to MethodInstances. MethodInstances are used as the key to cache and can therefore be used to walk and invalidate the user cache. Co-authored-by: Jameson Nash <[email protected]>
- Loading branch information
Showing
5 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters