[Flang-dev] RFC: lowering Fortran AST to an IR

xoviat xoviat at gmail.com
Wed Oct 24 16:26:22 EDT 2018

Hello Eric:

The F18 project seems to currently be a pure C++ project without any meaningful runtime or math libraries. Is the plan to eventually copy the f18 tool into the flang source tree, or to copy the flang source runtime libraries into the f18 source tree? I assume that you’ll need to depend on pgmath, as I don’t think that rewriting the math library in C++ will be an effective use of time.

As I understand matters, f18 currently transforms Fortran to Fortran; is this correct? Are you going to lower to the PG MIR eventually (and re-use flang2) or replace flang2 completely? 


From: Eric Schweitz (PGI)
Sent: Wednesday, October 24, 2018 2:42 PM
To: flang-dev at lists.flang-compiler.org
Subject: [Flang-dev] RFC: lowering Fortran AST to an IR

The f18 project has a high-level design document out for several months on an intermediate representation for lowering and optimizing Fortran ASTs. The document can be found here: https://bit.ly/2q9IRaQ

Some context for this document can be found in the github documentation at: https://github.com/flang-compiler/f18/tree/master/documentation
Of particular note:
       * Parsing: https://bit.ly/2ERlXyO
       * Semantics: https://bit.ly/2CAybcB
       * Label Resolution: https://bit.ly/2PlXQfP
The purpose of the f18 CFG will be to lower Fortran surface syntax into an semantically clean operational structure amenable to high-level transformations and further lowering into LLVM-IR.
As the project continues to move forward, we would like to know of if there are any relevant thoughts, concerns, or questions.

This email message is for the sole use of the intended recipient(s) and may contain confidential information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.flang-compiler.org/pipermail/flang-dev_lists.flang-compiler.org/attachments/20181024/b2b5e844/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DD27A83AC69A412C8F8B4ED88F972D75.png
Type: image/png
Size: 148 bytes
Desc: not available
URL: <http://lists.flang-compiler.org/pipermail/flang-dev_lists.flang-compiler.org/attachments/20181024/b2b5e844/attachment.png>

More information about the flang-dev mailing list