[all-commits] [llvm/llvm-project] e46d8a: [InlineOrder] Plugin Inline Order

kazutakahirata via All-commits all-commits at lists.llvm.org
Tue Mar 14 13:14:10 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e46d8a731535afcf0c5c2a2f6cf3c5d4fb69cd5b
      https://github.com/llvm/llvm-project/commit/e46d8a731535afcf0c5c2a2f6cf3c5d4fb69cd5b
  Author: Kazu Hirata <kazu at google.com>
  Date:   2023-03-14 (Tue, 14 Mar 2023)

  Changed paths:
    M llvm/include/llvm/Analysis/InlineOrder.h
    M llvm/lib/Analysis/InlineOrder.cpp
    M llvm/lib/Transforms/IPO/ModuleInliner.cpp
    M llvm/unittests/Analysis/CMakeLists.txt
    A llvm/unittests/Analysis/InlineOrderPlugin/CMakeLists.txt
    A llvm/unittests/Analysis/InlineOrderPlugin/InlineOrderPlugin.cpp
    M llvm/unittests/Analysis/PluginInlineAdvisorAnalysisTest.cpp
    A llvm/unittests/Analysis/PluginInlineOrderAnalysisTest.cpp

  Log Message:
  -----------
  [InlineOrder] Plugin Inline Order

This allows developing and distributing inlining heuristics
outside of tree. And together with the inline advisor plugins
allows for fine grained control of the inliner.

The PluginInlineOrderAnalysis class serves as the entry point
for dynamic advisors. Plugins must register instances of this
class to provide their own InlineOrder.

I'm checking in this patch on behalf of ibricchi
<ibricchi at student.ethz.ch>.

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




More information about the All-commits mailing list