[all-commits] [llvm/llvm-project] 43fe6f: [flang] Add -fpass-plugin option to Flang frontend

Tarun Prabhu via All-commits all-commits at lists.llvm.org
Tue Oct 4 16:09:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 43fe6f7cc35ded691bbc2fa844086d321e705d46
      https://github.com/llvm/llvm-project/commit/43fe6f7cc35ded691bbc2fa844086d321e705d46
  Author: Tarun Prabhu <tarun at lanl.gov>
  Date:   2022-10-04 (Tue, 04 Oct 2022)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChains/Flang.cpp
    M flang/docs/FlangDriver.md
    M flang/docs/ReleaseNotes.md
    M flang/include/flang/Frontend/CodeGenOptions.h
    M flang/lib/Frontend/CompilerInvocation.cpp
    M flang/lib/Frontend/FrontendActions.cpp
    M flang/test/Driver/driver-help-hidden.f90
    M flang/test/Driver/driver-help.f90
    M flang/test/Driver/frontend-forwarding.f90
    A flang/test/Driver/pass-plugin-not-found.f90
    A flang/test/Driver/pass-plugin.f90

  Log Message:
  -----------
  [flang] Add -fpass-plugin option to Flang frontend

Add the -fpass-plugin option to flang which dynamically loads LLVM passes from the
shared object passed as the argument to the flag. The behavior of the option is
designed to replicate that of the same option in clang and thus has the same
capabilities and limitations.

- Multiple instances of -fpass-plugin=path-to-file can be specified and each of the
  files will be loaded in that order.

- The flag can be passed to both flang-new and flang-new -fc1.

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




More information about the All-commits mailing list