Skip to content

How The Flang Frontend Works: Introduction to the interior of the Open-Source Fortran frontend for LLVM

In May 2017, PGI® publicized Flang [16][7], an Open–Source Fortran frontend for LLVM along with a complementary runtime library. The ultimate goal set for Flang is to make it part of the whole LLVM ecosystem with level of support and attention equal to that experienced by the Clang frontend. To come closer to this goal it is important to make Flang widely known and more visible. A good introduction to the frontend interior could serve such a purpose and the intention of this paper is to describe how Flang works and how its source code is structured.