Pass the LLVMContext when querying inline params on LLVM 24 #3800
All Vouch review confidence checks passed
Residual risk 0.04 = Change Risk (0.29) × (1 − Review Confidence (0.87)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.29 · 27 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.84 · 4 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.199
Real PR Conversation Timeline
6 items
Approved
Approved these changes.
why remove -Werror=unused-variable ?
Because I needed 3 hour-long iterations on CI to hit yet another one breakage due to this warning-promoted-error.
it can be re-enabled, but right now we need to merge this so we can update the cascade dependecy in e-jax and reactant, so we can solve a bug elsewhere
Not waiting for macos, it's broken
vchuravy
ftynse
llvm/llvm-project#239650 moved the inliner threshold options into
AnalysisOptions, sollvm::getInlineParamsandllvm::getInlineParamsFromOptLevelnow take theLLVMContextthe options are read from. Without this,Enzyme.cppfails to compile against current LLVM main:Pass
F.getContext()in the post-optimization inlining and thread thePassBuilderinto the LTO pipeline helper to usePB.getContext().Needed by EnzymeAD/Enzyme-JAX#3901, which moves LLVM to llvm/llvm-project@df0a91f644ef. Verified there by building and testing Enzyme-JAX against this branch.
Note: the guard is
LLVM_VERSION_MAJOR >= 24, so LLVM 24 snapshots that predate llvm/llvm-project#239650 will no longer build.