[all-commits] [llvm/llvm-project] 91989c: [Flang][Driver] Implement OPT_R_Joined options

victorkingi via All-commits all-commits at lists.llvm.org
Wed Aug 23 03:20:28 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 91989c67483c37bbcee4404eea789e39dd3470d9
      https://github.com/llvm/llvm-project/commit/91989c67483c37bbcee4404eea789e39dd3470d9
  Author: Victor Kingi <victor.kingi at arm.com>
  Date:   2023-08-23 (Wed, 23 Aug 2023)

  Changed paths:
    M flang/include/flang/Frontend/CodeGenOptions.h
    M flang/lib/Frontend/CompilerInvocation.cpp
    M flang/lib/Frontend/FrontendActions.cpp
    M flang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
    A flang/test/Driver/optimization-remark.f90

  Log Message:
  -----------
  [Flang][Driver] Implement OPT_R_Joined options

Add a BackendRemarkConsumer class, responsible for handling diagnostics
received from LLVM. The diagnostics being information on middle and
backend passes used or not used.

Clang by default has all remarks ignored but manually sets the severity of
`R_Group` to visible(`clang::diag::clang::Severity::Remark`). This patch does
the same for Flang.

Depends on D157410. That patch adds the R family of options to
`FlangOption` and `FC1Option` in
`clang/include/clang/Driver/Options.td`

Reviewed By: awarzynski

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




More information about the All-commits mailing list