Compiling FPM with LFortran

GSOC 2025 @Fortran-lang

by Jinang Shah

Week 9 - Towards ASR to LLVM FPM compilation

July 12 – July 18, 2025

Welcome to Week 9! This week was focused on resolving the LLVM generation stage for the Fortran Package Manager (FPM) via LFortran. Many issues previously blocked in the ASR-to-LLVM phase are now either fixed or isolated via MREs. Half the modules now compile fully to LLVM IR.

The core bottlenecks addressed include operator overloading resolution and class polymorphism handling. We now estimate around 8–10 remaining issues to complete the full LLVM IR generation for FPM!

Work done this week:

Around 18 hours were spent this week understanding the ASR-to-LLVM bridge and debugging crashes. With these improvements, the LLVM generation stage is now highly promising.

Thanks again to Ondřej Čertík and Pranav Goswami for guiding tricky LLVM fixes and reviewing MRs.

Plan for next week: