[all-commits] [llvm/llvm-project] a00aaf: [InlineAdvisor] Allow loading advisors as plugins
IBricchi via All-commits
all-commits at lists.llvm.org
Fri Dec 16 16:01:17 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a00aaf2b1317fbc224dc6606ef7c2a10d617f28f
https://github.com/llvm/llvm-project/commit/a00aaf2b1317fbc224dc6606ef7c2a10d617f28f
Author: ibricchi <ibricchi at student.ethz.ch>
Date: 2022-12-16 (Fri, 16 Dec 2022)
Changed paths:
M llvm/include/llvm/Analysis/InlineAdvisor.h
M llvm/lib/Analysis/InlineAdvisor.cpp
M llvm/unittests/Analysis/CMakeLists.txt
A llvm/unittests/Analysis/InlineAdvisorPlugin.cpp
A llvm/unittests/Analysis/PluginInlineAdvisorAnalysisTest.cpp
Log Message:
-----------
[InlineAdvisor] Allow loading advisors as plugins
Adds the ability to load InlineAdvisors as plugins. This allows developing and distributing inlining heuristics outside of tree.
The PluginInlineAdvisorAnalysis class serves as the entry point for dynamic advisors. Plugins must register instances of this class to provide their own InliningAdvisor.
Reviewed By: mtrofin
Differential Revision: https://reviews.llvm.org/D139644
More information about the All-commits
mailing list