[PATCH] D96884: [flang][driver] Add more -fdebug options

Faris Rehman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 17 11:14:23 PST 2021


FarisRehman created this revision.
Herald added subscribers: jansvoboda11, dang, mgorny.
Herald added a reviewer: sscalpone.
Herald added a reviewer: awarzynski.
FarisRehman requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: cfe-commits, sstefan1.
Herald added a project: clang.

Add the following options:

- -fdebug-parsing-log
- -fdebug-measure-parse-tree
- -fdebug-pre-fir-tree

Summary of changes:

- Add 3 new frontend actions: DebugParsingLogAction, 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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96884

Files:
  clang/include/clang/Driver/Options.td
  flang/include/flang/Frontend/FrontendActions.h
  flang/include/flang/Frontend/FrontendOptions.h
  flang/lib/Frontend/CMakeLists.txt
  flang/lib/Frontend/CompilerInvocation.cpp
  flang/lib/Frontend/FrontendActions.cpp
  flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
  flang/test/Flang-Driver/debug-measure-parse-tree.f90
  flang/test/Flang-Driver/debug-parsing-log.f90
  flang/test/Flang-Driver/driver-help.f90
  flang/test/Lower/pre-fir-tree01.f90
  flang/test/Lower/pre-fir-tree02.f90
  flang/test/Lower/pre-fir-tree03.f90
  flang/test/Lower/pre-fir-tree05.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96884.324362.patch
Type: text/x-patch
Size: 12691 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210217/6129ed4a/attachment.bin>


More information about the cfe-commits mailing list