[cfe-commits] [RFC and PATCH] Fortran

Hal Finkel hfinkel at anl.gov
Fri May 4 12:38:51 PDT 2012

On Fri, 04 May 2012 10:14:40 -0700
Chris Lattner <clattner at apple.com> wrote:

> On May 4, 2012, at 4:27 AM, Hal Finkel wrote:
> >> 
> >> FWIW, I don't think that this makes sense from a community
> >> standpoint.
> >> 
> >> If you're serious about building a fortran frontend (which would be
> >> really really cool).  I think we should start it as another LLVM
> >> subproject.  It can certainly build off and use the Clang "liblex"
> >> to get the preprocessor etc, and taking changes to support Fortran
> >> into the clang tree would be perfectly fine.
> > 
> > Alright cool, let's do that then. Based on the feedback I've
> > received, it seems like it makes the most sense to add Fortran
> > support directly into the driver and lexer, and keep everything
> > else as a separate subproject. This subproject will have its own
> > Parser, Sema, AST, CodeGen, etc. subdirectories.
> Sounds good to me.
> > If we set this up kind of like clang is
> > setup, then the build system will detect whether there is a fortran
> > subdirectory in clang, and if so, will build (defining
> > CLANG_HAS_FORTRAN or something like that) and link the extra
> > components.
> Should "flang" (please come up with a better name! :) be in
> llvm/tools/flang or in llvm/tools/clang/flang?  I think that the
> former makes more sense.  These are peer projects, even if one is
> dependent on the other.

Yea, I was avoiding that :) If we really want something with 'lang' at
the end, then we could call it fortlang (I am certainly open to other
suggestions). Otherwise, we could avoid the issue for now and just name
the repository fortran or ffe. I think making them peer projects in
reasonable. If we're reusing the built sources from clang, then we just
need to setup the makefiles to make sure that clang is always built

Thanks again,

> -Chris

Hal Finkel
Postdoctoral Appointee
Leadership Computing Facility
Argonne National Laboratory

More information about the cfe-commits mailing list