Depends on D73951
This work implements the "driver" part of an RFC sent to cfe-dev in .
The entry point adds a binary called bin/flang-tmp because ATM flang is in use
The goal is to have the old flang.sh removed from the install to make way
bin/flang-tmp is implemented in terms of clang::Driver, defaulting to the
--driver-mode=flang added to clang in . Therefore it adds libClang in
This patch uses a new flag ('fortran-fe' for fortran frontend) introduced
in , which is under review. bin/flang-tmp will select the frontend
flang-tmp -fc1 instead of flang -fc1 (in the code we set -fortran-fe=flang-tmp)
while flang is at use.
Regression tests are added in test/driver, which mirror some tests in the
clang/test/Driver directory, flang.f90 and flang.F90. The primary difference is
that the clang tests run clang --driver-mode=flang <input>, whereas these tests
run flang <input>.
 "RFC: Adding a fortran mode to the clang driver for flang"
 [clang][driver] Add basic --driver-mode=flang support for fortran
[Clang][Driver]Add logic to search for flang frontend
Signed-off-by: Caroline Concatto <firstname.lastname@example.org>