[all-commits] [llvm/llvm-project] d34dce: [Flang] Allow registering plugin extensions with t...

Usman Nadeem via All-commits all-commits at lists.llvm.org
Thu Nov 10 14:16:46 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d34dce25d9585305c1d7a89f16a259bbbf62ff2b
      https://github.com/llvm/llvm-project/commit/d34dce25d9585305c1d7a89f16a259bbbf62ff2b
  Author: Usman Nadeem <mnadeem at quicinc.com>
  Date:   2022-11-10 (Thu, 10 Nov 2022)

  Changed paths:
    M flang/docs/FlangDriver.md
    M flang/docs/ReleaseNotes.md
    M flang/lib/Frontend/CMakeLists.txt
    M flang/lib/Frontend/FrontendActions.cpp
    M flang/test/CMakeLists.txt
    M flang/test/Driver/pass-plugin.f90
    M flang/test/lit.cfg.py
    M flang/test/lit.site.cfg.py.in

  Log Message:
  -----------
  [Flang] Allow registering plugin extensions with the pass builder

Pass plugins are compiled and linked dynamically by default. Setting
`LLVM_${NAME}_LINK_INTO_TOOLS` to `ON` turns the project into a
statically linked extension. Projects like Polly can be used this way by
adding `-DLLVM_POLLY_LINK_INTO_TOOLS=ON` to the `cmake` command.

The changes in this patch makes the PassBuilder in Flang aware of
statically linked pass plugins, see the documentation for more details:
https://github.com/llvm/llvm-project/blob/main/llvm/docs/WritingAnLLVMNewPMPass.rst#id21

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

Change-Id: Id1aa501dcb4821d0ec779f375cc8e8d6b0b92fce




More information about the All-commits mailing list