<div dir="ltr">Hi River-<div><br></div><div>We are in the process of cleaning our code and we will be upstreaming our OpenMP and Loop optimization changes soon. It would be great to get your feedback on MLIR changes.</div><div><br></div><div>-Prashanth</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 14, 2020 at 4:12 AM River Riddle <<a href="mailto:riddleriver@gmail.com">riddleriver@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 13, 2020 at 1:13 PM Prashanth N R via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi-<div><br></div><div>The code has been open sourced at <a href="https://github.com/compiler-tree-technologies" target="_blank">https://github.com/compiler-tree-technologies</a>. There are two repositories.</div><div>1. The Fortran front end, aka FC, at <a href="https://github.com/compiler-tree-technologies/fc" target="_blank">https://github.com/compiler-tree-technologies/fc</a>.</div><div>2. Associated LLVM changes including MLIR at <a href="https://github.com/compiler-tree-technologies/llvm-project" target="_blank">https://github.com/compiler-tree-technologies/llvm-project</a>.</div><div></div></div></blockquote><div dir="auto"><br></div><div dir="auto">Hi,</div><div dir="auto"><br></div><div dir="auto">(disclaimer: I can’t say much about the Fortran side, but I did look at some of the MLIR bits)</div><div dir="auto"><br></div><div dir="auto">I took a look at the repos, and would love for you(+your team) to upstream any of the general MLIR bits you can. Feel free to add me as a reviewer. (I also went ahead and fixed one of your issues).</div><div dir="auto"><br></div><div dir="auto">I look forward to collaborating with you more!</div><div dir="auto"><br></div><div dir="auto">— River</div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>Build instructions are given at the website. There is a document at <a href="https://github.com/compiler-tree-technologies/fc/blob/master/docs/FC_MLIR.pdf" target="_blank">https://github.com/compiler-tree-technologies/fc/blob/master/docs/FC_MLIR.pdf</a> which gives low level implementation details. As the week progresses, we might clean up the code and upstream. In the meantime, if there are any questions, please do let me know.</div><div><br></div><div>thanks,</div><div>-Prashanth</div><div><br></div></div><br><div class="gmail_quote"></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 13, 2020 at 11:17 AM Chris Lattner <<a href="mailto:clattner@nondot.org" target="_blank">clattner@nondot.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Agreed!  Is the code already available?  What are your plans for it, and are you interested in collaboration with the rest of the LLVM community?<div><br></div><div>-Chris<br><div><br><blockquote type="cite"><div>On Jan 11, 2020, at 11:58 AM, Finkel, Hal J. via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:</div><br><div>



<div><p>Hi, Prashanth,</p><p>That's great news! It sounds like you've made a lot of progress, and I certainly hope that you can make your source available under the LLVM license and that we can all work together going forward.</p><p> -Hal<br>
</p>
<div>On 1/11/20 12:52 PM, Prashanth N R via llvm-dev wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi-
<div><br>
</div>
<div>In August we made an announcement  of "FC: A new fortran front end"  [1]. At that time to get an end-to-end solution, we made FC to emit LLVM IR directly.  At present, we have upgraded FC to emit MLIR. Currently the language supported is close to Fortran-95.
 Apart from 400+ unit test cases, out framework passes two SPEC-2017 benchmarks successfully.  Currently we are cleaning up the code and plan to open source the same in a week or so.</div>
<div><br>
</div>
<div>Apart from the front end changes, we have defined a new high level dialect in MLIR for representing Fortran. We have defined a new Loop Nest Optimization framework along with one Loop Nest Optimization in it for the time being. Also we have supported 4
 OpenMP constructs and way to express the same in MLIR framework. </div>
<div><br>
</div>
<div>Entire code is in the spirit of LLVM. If the community is interested, we would like to work with the community and move forward. </div>
<div><br>
</div>
<div>thanks,</div>
<div>-Prashanth</div>
<div><br>
</div>
<div>PS: We did try to use F18 for a while and hit the issues raised in [2], [3].</div>
<div><br>
</div>
<div>1. <a href="http://lists.llvm.org/pipermail/llvm-dev/2019-August/134620.html" target="_blank">http://lists.llvm.org/pipermail/llvm-dev/2019-August/134620.html</a></div>
<div>2. <a href="http://lists.llvm.org/pipermail/llvm-dev/2020-January/138069.html" target="_blank">http://lists.llvm.org/pipermail/llvm-dev/2020-January/138069.html</a></div>
<div>3. <a href="http://lists.llvm.org/pipermail/flang-dev/attachments/20191202/6e7c1e51/attachment-0001.pdf" target="_blank">http://lists.llvm.org/pipermail/flang-dev/attachments/20191202/6e7c1e51/attachment-0001.pdf</a></div>
<div>OR <a href="http://lists.llvm.org/pipermail/flang-dev/2019-December/000089.html" target="_blank">http://lists.llvm.org/pipermail/flang-dev/2019-December/000089.html</a></div>
<div><br>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
LLVM Developers mailing list
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
</blockquote>
<pre cols="72">-- 
Hal Finkel
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory</pre>
</div>

_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br><a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br></div></blockquote></div><br></div></div></blockquote></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div>-- <br><div dir="ltr">Thank you,<br>  River Riddle</div>
</blockquote></div>