LLVM Flang Fortran compiler

Since 2015, NVIDIA has supported development of LLVM-based Flang Fortran compiler. The legacy non-LLVM Flang was based on the PGI compiler, with proprietary optimizations removed. However, the C-based decade-plus of cruft led Flang developers and management to a ground-up rewrite in modern C++. LLVM flang targets Fortran 2018 syntax and is implemented in modern C++ internally. Flang became part of LLVM 11.

Building the LLVM Flang Fortran compiler from source is a resource-intensive process made simple by this script.