llvm-project/flang/lib/Frontend
Andrzej Warzynski a7c08bcf77 [flang][driver] Add support for `-mllvm`
This option is added in both `flang-new` (the compiler driver) and
`flang-new -fc1` (the frontend driver). The semantics are consistent
with `clang` and `clang -cc1`.

As Flang does not run any LLVM passes when invoked with `-emit-llvm`
(i.e. `flang-new -S -emit-llvm <file>`), the tests use
`-S`/`-c`/`-emit-obj` instead. These options require an LLVM backend to
be run by the driver to generate the output (this makese `-mllvm`
relevant here).

Differential Revision: https://reviews.llvm.org/D121374
2022-03-16 10:41:04 +00:00
..
CMakeLists.txt [flang] Fix DYLIB builds 2022-03-11 16:12:36 +00:00
CompilerInstance.cpp [flang][driver][nfc] Fix capitalisation 2022-01-31 10:36:18 +00:00
CompilerInvocation.cpp [flang][driver] Add support for `-mllvm` 2022-03-16 10:41:04 +00:00
FrontendAction.cpp [flang][driver] Make `flang-new` always generate run-time type info 2022-02-23 10:08:03 +00:00
FrontendActions.cpp [flang][driver] Add support for -S and implement -c/-emit-obj 2022-03-09 15:48:09 +00:00
FrontendOptions.cpp [flang] Produce proper "preprocessor output" for -E option 2021-07-30 15:13:56 -07:00
TextDiagnostic.cpp [flang] Introduce DiagnosticConsumer classes in libflangFrontend 2020-10-05 17:46:44 +01:00
TextDiagnosticBuffer.cpp [flang] Introduce DiagnosticConsumer classes in libflangFrontend 2020-10-05 17:46:44 +01:00
TextDiagnosticPrinter.cpp [flang] Introduce DiagnosticConsumer classes in libflangFrontend 2020-10-05 17:46:44 +01:00