diff options
author | Faris Rehman <faris.rehman@arm.com> | 2021-02-17 18:53:05 +0000 |
---|---|---|
committer | Faris Rehman <faris.rehman@arm.com> | 2021-02-19 11:27:54 +0000 |
commit | 529f71811b0475995f2d9cf766f18d897eec574c (patch) | |
tree | 38a91175d41a58a35a1caffc1abae6fe8513d861 /flang/lib/FrontendTool | |
parent | aa44815f849f2928f998499b163c8c3230a73c95 (diff) | |
download | llvm-529f71811b0475995f2d9cf766f18d897eec574c.zip llvm-529f71811b0475995f2d9cf766f18d897eec574c.tar.gz llvm-529f71811b0475995f2d9cf766f18d897eec574c.tar.bz2 |
[flang][driver] Add debug measure-parse-tree and pre-fir-tree options
Add the following options:
* -fdebug-measure-parse-tree
* -fdebug-pre-fir-tree
Summary of changes:
- Add 2 new frontend actions: DebugMeasureParseTreeAction and DebugPreFIRTreeAction
- Add MeasurementVisitor to FrontendActions.h
- Make reportFatalSemanticErrors return true if there are any fatal errors
- Port most of the `-fdebug-pre-fir-tree` tests to use the new driver if built, otherwise use f18.
Differential Revision: https://reviews.llvm.org/D96884
Diffstat (limited to 'flang/lib/FrontendTool')
-rw-r--r-- | flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp index aec968b..c5f7bb2 100644 --- a/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp +++ b/flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp @@ -52,6 +52,12 @@ static std::unique_ptr<FrontendAction> CreateFrontendBaseAction( case DebugDumpProvenance: return std::make_unique<DebugDumpProvenanceAction>(); break; + case DebugMeasureParseTree: + return std::make_unique<DebugMeasureParseTreeAction>(); + break; + case DebugPreFIRTree: + return std::make_unique<DebugPreFIRTreeAction>(); + break; default: break; // TODO: |