[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-06-08 Thread Caroline via Phabricator via cfe-commits
CarolineConcatto added a comment. I'll close this PR as we believe we will not need this flag for Flang driver. There are some development happening in: https://github.com/banach-space/llvm-project for now. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-06-08 Thread Caroline via Phabricator via cfe-commits
CarolineConcatto abandoned this revision. CarolineConcatto added a comment. I'll close this PR as we believe we will not need this flag for Flang driver. There are some development happening in: https://github.com/banach-space/llvm-project for now. Repository: rG LLVM Github Monorepo CHANGES

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-05-04 Thread Caroline via Phabricator via cfe-commits
CarolineConcatto updated this revision to Diff 261806. CarolineConcatto marked 7 inline comments as done. CarolineConcatto added a comment. Rename the flag and fix reviews comments Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D73951/new/

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-05-04 Thread Andrzej Warzynski via Phabricator via cfe-commits
awarzynski added inline comments. Comment at: clang/lib/Driver/ToolChains/Flang.cpp:71 const auto& D = C.getDriver(); - const std::string = D.getFFCGenericFortranName(); + const std::string = D.getGenericFortranFE(); const char *FortranName; [nit]

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-05-04 Thread Andrzej Warzynski via Phabricator via cfe-commits
awarzynski added a comment. @CarolineConcatto thank you for the updates! - It looks like you accidentally pushed two commits in one patch :) Could you please squash and resubmit? (this should clean-up the diff). Ta! - Perhaps `CFCGenericFlangName` instead of `GenericFortranFE`? This would

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-05-01 Thread Caroline via Phabricator via cfe-commits
CarolineConcatto added inline comments. Comment at: clang/test/Driver/flang/clang-driver-2-frontend01.f90:10 +! RUN: cp %clang %t1 +! RUN: %clang --driver-mode=flang -fortran-fe %basename_t.tmp1 -### %s 2>&1 | FileCheck --check-prefixes=ALL %s + awarzynski

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-05-01 Thread Caroline via Phabricator via cfe-commits
CarolineConcatto updated this revision to Diff 261451. CarolineConcatto marked 3 inline comments as done. CarolineConcatto added a comment. This patch updates the flag name from ffc-fortran-name to cfc-fortran-name, where cfc stands for custom frontend compiler. Moreover, the tests need pruning

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-04-30 Thread Andrzej Warzynski via Phabricator via cfe-commits
awarzynski added a comment. @richard.barton.arm @CarolineConcatto thank you both for clarification! @CarolineConcatto , if you prefer to go ahead with this approach - could you please address all the outstanding comments? I've left a few comments that I'd like addressed first, but nothing

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-04-30 Thread Richard Barton via Phabricator via cfe-commits
richard.barton.arm added a comment. So, coming back to this after a few weeks break. I agree with the point @awarzynski makes on this option being powerful and I think your alternative suggestion of using a different hard-coded name could work well at this stage of the project. I think the

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-04-30 Thread Caroline via Phabricator via cfe-commits
CarolineConcatto added a comment. @awarzynski If we don't foresee a use for this flag beside the problem I've faced, then I am fine to remove and only replace by flang-tmp. But as we discuss this flag enables flang driver to call another driver, basically cross-compilation. That could be a

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-04-29 Thread Andrzej Warzynski via Phabricator via cfe-commits
awarzynski added a comment. The suggested flag, `-fortran-fe`, feels quite powerful and I wonder whether it's required this early into the development of the Flang driver? IIUC, this flag would be used to workaround the fact that currently `flang` is a bash script and hence can't be used when

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-04-28 Thread Steve Scalpone via Phabricator via cfe-commits
sscalpone added inline comments. Comment at: clang/test/Driver/flang/flang-driver-2-frontend01.f90:1 +! Check wich name of flang frontend is invoked by the driver + typo //wich// Comment at:

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-04-28 Thread Steve Scalpone via Phabricator via cfe-commits
sscalpone added a comment. type in the commit message: //esle// the frontend name is hard-coded to "flang", use that to Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D73951/new/ https://reviews.llvm.org/D73951

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-02-17 Thread Richard Barton via Phabricator via cfe-commits
richard.barton.arm added inline comments. Comment at: clang/test/Driver/flang/clang-driver-2-frontend01.f90:10 +! RUN: cp %clang %t1 +! RUN: %clang --driver-mode=flang -fortran-fe %basename_t.tmp1 -### %s 2>&1 | FileCheck --check-prefixes=ALL %s +

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-02-14 Thread Caroline via Phabricator via cfe-commits
CarolineConcatto marked an inline comment as done. CarolineConcatto added inline comments. Comment at: clang/test/Driver/flang/clang-driver-2-frontend01.f90:10 +! RUN: cp %clang %t1 +! RUN: %clang --driver-mode=flang -fortran-fe %basename_t.tmp1 -### %s 2>&1 | FileCheck

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-02-14 Thread Richard Barton via Phabricator via cfe-commits
richard.barton.arm added inline comments. Comment at: clang/include/clang/Driver/Options.td:268 +def fortran_fe : Separate<["-"], "fortran-fe">, InternalDriverOpt, + HelpText<"Name for native Fortran compiler">; richard.barton.arm wrote: > This is not right.

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-02-14 Thread Richard Barton via Phabricator via cfe-commits
richard.barton.arm added a comment. Still not sure why all the tests are needed here. The first one looks fine, i.e. we test that --fortran-fe= calls to that copy. The second one appears to test the default behaviour with no option, but why does it do it via a different name for clang, why

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-02-14 Thread Caroline via Phabricator via cfe-commits
CarolineConcatto updated this revision to Diff 244635. CarolineConcatto added a comment. - [Clang]Rename flag and update the tests Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D73951/new/ https://reviews.llvm.org/D73951 Files:

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-02-14 Thread Caroline via Phabricator via cfe-commits
CarolineConcatto added a comment. @richard.barton.arm A new patch will land today with the changes asked by you. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D73951/new/ https://reviews.llvm.org/D73951

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-02-14 Thread Richard Barton via Phabricator via cfe-commits
richard.barton.arm added a comment. I'd still like to see the nits addressed and comments on the tests addressed before approving. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D73951/new/ https://reviews.llvm.org/D73951

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-02-13 Thread David Truby via Phabricator via cfe-commits
DavidTruby accepted this revision. DavidTruby marked an inline comment as done. DavidTruby added a comment. LGTM but wait for someone else to approve Comment at: clang/lib/Driver/Driver.cpp:131 CCLogDiagnostics(false), CCGenDiagnostics(false), -

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-02-05 Thread Richard Barton via Phabricator via cfe-commits
richard.barton.arm added inline comments. Comment at: clang/include/clang/Driver/Options.td:264 MetaVarName<"">; +def fcc_fortran_name : Separate<["-"], "ffc-fortran-name">, InternalDriverOpt, + HelpText<"Name for native Fortran compiler">; CarolineConcatto

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-02-04 Thread Caroline via Phabricator via cfe-commits
CarolineConcatto marked 5 inline comments as done. CarolineConcatto added inline comments. Comment at: clang/include/clang/Driver/Options.td:264 MetaVarName<"">; +def fcc_fortran_name : Separate<["-"], "ffc-fortran-name">, InternalDriverOpt, + HelpText<"Name for native

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-02-04 Thread Richard Barton via Phabricator via cfe-commits
richard.barton.arm requested changes to this revision. richard.barton.arm added a comment. A few comments running through that need addressing. In addition - have you checked the behaviour of this option with `-Bprefix`? Looking at the code for Driver.GetProgramPath, it seems like that would

[PATCH] D73951: [Clang] [Driver]Add logic to search for flang frontend

2020-02-04 Thread David Truby via Phabricator via cfe-commits
DavidTruby requested changes to this revision. DavidTruby added a comment. This revision now requires changes to proceed. If what I've suggested above doesn't work then the patch lgtm as is Comment at: clang/lib/Driver/Driver.cpp:131 CCLogDiagnostics(false),