[all-commits] [llvm/llvm-project] 4bd08d: [flang][driver] Add debug dump options

Faris via All-commits all-commits at lists.llvm.org
Thu Feb 18 03:36:00 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4bd08dab5ff99d094513f4adf4bf16bbce8f5a1f
      https://github.com/llvm/llvm-project/commit/4bd08dab5ff99d094513f4adf4bf16bbce8f5a1f
  Author: Faris Rehman <faris.rehman at arm.com>
  Date:   2021-02-18 (Thu, 18 Feb 2021)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M flang/include/flang/Frontend/FrontendActions.h
    M flang/include/flang/Frontend/FrontendOptions.h
    M flang/lib/Frontend/CompilerInvocation.cpp
    M flang/lib/Frontend/FrontendActions.cpp
    M flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
    A flang/test/Flang-Driver/debug-provenance.f90
    M flang/test/Flang-Driver/driver-help.f90
    M flang/test/Semantics/data05.f90
    M flang/test/Semantics/data08.f90
    M flang/test/Semantics/data09.f90
    M flang/test/Semantics/offsets01.f90
    M flang/test/Semantics/offsets02.f90
    M flang/test/Semantics/offsets03.f90
    M flang/test/Semantics/resolve100.f90
    M flang/test/Semantics/rewrite01.f90

  Log Message:
  -----------
  [flang][driver] Add debug dump options

Add the following options:
* -fdebug-dump-symbols
* -fdebug-dump-parse-tree
* -fdebug-dump-provenance

Summary of changes:
- Add 3 new frontend actions: DebugDumpSymbolsAction, DebugDumpParseTreeAction and DebugDumpProvenanceAction
- Add a unique pointer to the Semantics instance created in PrescanAndSemaAction
- Move fatal semantic error reporting to its own method, FrontendActions#reportFatalSemanticErrors
- Port most tests using `-fdebug-dump-symbols` and `-fdebug-dump-parse-tree` to the new driver if built, otherwise default to f18

Differential Revision: https://reviews.llvm.org/D96716




More information about the All-commits mailing list