Conversation
This was referenced Sep 25, 2026
maleadt
added this pull request to stack #951
September 25, 2026 06:14
maleadt
force-pushed
the
tb/julia-ir-passes
branch
from
September 25, 2026 06:55
7ea53e3 to
1ad3695
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #948 +/- ##
==========================================
+ Coverage 86.32% 86.36% +0.04%
==========================================
Files 29 29
Lines 5756 5766 +10
==========================================
+ Hits 4969 4980 +11
+ Misses 787 786 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The new experimental interface function `julia_ir_passes(job)` returns passes that run on the Julia IR of every function optimized by `GPUInterpreter`. They run after Julia's optimizer and IPO analysis, but before the IR is used for inlining, caching, and code generation (`CC.finish` on Julia 1.10–1.12 and `CC.finishopt!` on 1.13 and later). The default is no passes. `run_julia_ir_passes` runs a job's passes independently of the interpreter, allowing other interpreters that compile GPUCompiler jobs to run them.
maleadt
force-pushed
the
tb/julia-ir-passes
branch
from
September 28, 2026 16:52
1ad3695 to
17baade
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A new experimental interface function,
julia_ir_passes(job), returns passes that run on the optimized IR of every function inferred byGPUInterpreter. They run after Julia's optimizer and IPO analysis, but before Julia computes inlineability and uses the IR for inlining, caching, and code generation: inCC.finishon Julia 1.10–1.12 andCC.finishopt!on 1.13 and later. Each pass is called aspass(interp, opt, ir)and returns the new IR. Back-ends can add passes after GPUCompiler's.The default is no passes, so this PR does not change behavior.
cache_owneruses those to partition inference results.run_julia_ir_passesruns a job's passes independently of the interpreter, allowing other interpreters that compile GPUCompiler jobs, such as Enzyme's, to run them.