llvm-project/flang/lib/Frontend
Andrzej Warzynski a6be6e31f1 [flang][driver] Add `-fdebug-dump-all`
The new option will run the semantic checks and then dump the parse tree
and all the symbols. This is equivalent to running the driver twice,
once with `-fdebug-dump-parse-tree` and then with
the `-fdebug-dump-symbols` action flag.

Currently we wouldn't be able to achieve the same by simply running:
```
flang-new -fc1 -fdebug-dump-parse-tree -fdebug-dump-symbols <input-file>
```
That's because the new driver will only run one frontend action per
invocation (both of the flags used here are action flags). Diverging
from this design would lead to costly compromises and it's best avoided.

We may want to consider re-designing our debugging actions (and action
options) in the future so that there's more code re-use. For now, I'm
focusing on making sure that we support all the major cases requested by
our users.

Differential Revision: https://reviews.llvm.org/D104305
2021-06-16 07:54:27 +00:00
..
CMakeLists.txt [flang][driver] Add debug measure-parse-tree and pre-fir-tree options 2021-02-19 11:27:54 +00:00
CompilerInstance.cpp [flang][driver] Add support for `-cpp/-nocpp` 2021-04-07 13:01:52 +00:00
CompilerInvocation.cpp [flang][driver] Add `-fdebug-dump-all` 2021-06-16 07:54:27 +00:00
FrontendAction.cpp [flang][driver] Add support for `-cpp/-nocpp` 2021-04-07 13:01:52 +00:00
FrontendActions.cpp [flang][driver] Add `-fdebug-dump-all` 2021-06-16 07:54:27 +00:00
FrontendOptions.cpp [flang][driver] Add support for `-cpp/-nocpp` 2021-04-07 13:01:52 +00: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