Add Fortran (Flang + Enzyme) support to Enzyme Explorer #34
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 240 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.328
Real PR Conversation Timeline
1 comments
"Review active on #34"
general
weight: 0.35
joewallwork
Summary
- Enable
fortraninrestrictToLanguages(frontend/files/etc/config/compiler-explorer.enzyme.properties).- Add
template_files/etc/config/fortran.enzyme.properties.j2configuringflang20-enzyme-mainandflang21-enzyme-main(defaultCompiler=flang21-enzyme-main,compilerType=flang, Intel/AT&T asm, LLVM IR view, execution,--config=FlangEnzyme-<ver>.cfgfor regular and-fltobuilds,-Xflang -loadfor-mllvm -enzyme-options, andbinaryHideFuncRefor staticlibFortranRuntime.a/libFortranDecimal.asymbols)..modPrecompilation:- Install
flang-${v}for LLVM >= 20 infrontend/install_clang.sh, fetchenzyme_function_hooks.f90andenzyme.f90directly fromEnzymeAD/Enzyme, and precompile.modfiles per Flang version soiso_c_binding.modchecksums match.- Add
frontend/entrypoint.shto recompile/opt/compiler-explorer/main/fortran/.f90(synced fromEnzyme/mainbybuilder) with each installed/usr/bin/flang-${v}on startup, and sync/app/compiler-explorer/etc/config/.enzyme.propertiesinto/app/etc/config/when present so live commit hashes display instead of<unknown>.- Update
scripts/update-versions.pyto downloadLLDEnzyme-{version}.so,FlangEnzyme-{version}.so, andFlangEnzyme-{version}.cfg(published by https://github.com/EnzymeAD/Enzyme/pull/3551), copyEnzyme/enzyme/Fortran/.f90into/opt/compiler-explorer/main/fortran/, and renderfortran.enzyme.properties.- Add
default.f90,dot_product.f90,forward_mode.f90,custom_derivative.f90, andfunction_like.f90underfrontend/files/examples/fortran/.Verification
flang-20andflang-21(assembly, LLVM IR, binary disassembly, and program execution) via a live local Compiler Explorer server (--env enzyme).