HomePhabricator

[flang][driver] Add `-fdebug-dump-all`

Authored by awarzynski on Jun 15 2021, 8:30 AM.

Description

[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

Details

Committed
awarzynskiJun 16 2021, 12:54 AM
Differential Revision
D104305: [flang][driver] Add `-fdebug-dump-all`
Parents
rGcff215565e93: [OpenMP] Remove unused variables from libomp code
Branches
Unknown
Tags
Unknown