[all-commits] [llvm/llvm-project] 0c8619: Reland "[ELF] Enable new passmanager plugin suppor...

Jakob Koschel via All-commits all-commits at lists.llvm.org
Thu Mar 24 08:29:35 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c86198b279a98c8550fde318b59ed3ca0ca5045
      https://github.com/llvm/llvm-project/commit/0c86198b279a98c8550fde318b59ed3ca0ca5045
  Author: Jakob Koschel <jakobkoschel at gmail.com>
  Date:   2022-03-24 (Thu, 24 Mar 2022)

  Changed paths:
    M lld/ELF/Config.h
    M lld/ELF/Driver.cpp
    M lld/ELF/LTO.cpp
    M lld/ELF/Options.td
    M lld/test/CMakeLists.txt
    A lld/test/ELF/lto/ltopasses-extension.ll
    M lld/test/lit.cfg.py
    M lld/test/lit.site.cfg.py.in
    M llvm/examples/Bye/Bye.cpp

  Log Message:
  -----------
  Reland "[ELF] Enable new passmanager plugin support for LTO"

This is the orignal patch + a check that LLVM_BUILD_EXAMPLES is enabled before
adding a dependency on the 'Bye' example pass.

Original summary:

Add cli options for new passmanager plugin support to lld.

Currently it is not possible to load dynamic NewPM plugins with lld. This is an
incremental update to D76866. While that patch only added cli options for
llvm-lto2, this adds them for lld as well. This is especially useful for running
dynamic plugins on the linux kernel with LTO.

Reviewed By: MaskRay

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




More information about the All-commits mailing list