[PATCH] D139644: [InlineAdvisor] Allow loading advisors as plugins
IBricchi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 8 09:19:04 PST 2022
IBricchi created this revision.
IBricchi added a reviewer: mtrofin.
Herald added a subscriber: hiraditya.
Herald added a project: All.
IBricchi requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
https://reviews.llvm.org/D139644
Files:
llvm/include/llvm/Analysis/InlineAdvisor.h
llvm/lib/Analysis/InlineAdvisor.cpp
llvm/unittests/Analysis/CMakeLists.txt
llvm/unittests/Analysis/InlineAdvisorPlugin.cpp
llvm/unittests/Analysis/PluginInlineAdvisorAnalysisTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139644.481322.patch
Type: text/x-patch
Size: 19018 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221208/dcf03c28/attachment.bin>
More information about the llvm-commits
mailing list