<div dir="ltr">We are also interested in seeing one very good Fortran front end for LLVM. The existence of f18 tells us that flang is not a choice on a longer run. When we first encountered F18, we are overawed. <div><br></div><div>Open source allows freedom to attempt and learn by attempts. We are a predominantly back end engineers and FC allowed us to learn the issues involved in writing a front end.  As version 0.1 of FC is out we are contemplating what is the next step. We will come out with a plan soon.</div><div><br></div><div>thanks,</div><div>-Prashanth</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 19, 2019 at 8:19 PM Jeff Hammond <<a href="mailto:jeff.science@gmail.com">jeff.science@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="ltr">Why not contribute to Flang or F18 instead? What are the technical and nontechnical advantages of your project over those?</div><div dir="ltr"><br></div><div dir="ltr">I’m happy to see LLVM used all over the place, but I want the community focused on building one very good OSS Fortran front-end for LLVM, rather than five decent ones. </div><div dir="ltr"><br></div><div dir="ltr">Jeff</div><div dir="ltr"><br>On Aug 19, 2019, at 6:57 AM, Prashanth N R via flang-dev <<a href="mailto:flang-dev@lists.llvm.org" target="_blank">flang-dev@lists.llvm.org</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div dir="ltr"><pre style="color:rgb(0,0,0);white-space:pre-wrap">A new front end for Fortran (
<a href="https://github.com/compiler-tree-technologies/fc" target="_blank">https://github.com/compiler-tree-technologies/fc</a> ) has been written in the
design spirit of LLVM/Clang. This is a prototype version with approximately
20K+ lines of code. The compiler is close to Fortran 95 standard. The Front
end is a complete end to end solution without semantic analysis. It
compiles and runs 400+ unit test cases and 2 (503.bwaves_r and
548.exchange2_r) SPEC CPU 2017 Fortran benchmarks.

Major supported features inlcudes:
1. Nested do, do-while, where, select-case, forall, implied-do constructs,
2. Handling/Expanding Array Section expressions, Array constructors,
3. IO Handling: File read/write with basic Formatting support.
4. Support for around 40 Fortran Intrinsics like transpose, reshape, min,
max, sum, etc
5. Nested Functions/ Module/ Subroutines.
6. Derived types are partially supported(WIP)
7. Dynamic memory handling (allocate statement) using malloc/free.
8. Very basic Debugging / TBAA support.

LLVM code generated is fairly optimized. The performance in SPEC becnhmarks
are comparable(better in few cases) to flang and gfortran compilers in both
speed and rate runs.

Feedback/ comments are welcome.

Thanks,
Prashantha N.R.
Compiler Tree Technologies</pre></div></div>
</div></blockquote><blockquote type="cite"><div dir="ltr"><span>_______________________________________________</span><br><span>flang-dev mailing list</span><br><span><a href="mailto:flang-dev@lists.llvm.org" target="_blank">flang-dev@lists.llvm.org</a></span><br><span><a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/flang-dev" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/flang-dev</a></span><br></div></blockquote></div></blockquote></div>