[llvm] Add interface to order inlining
authorLiqiang Tao <taolq@outlook.com>
Sun, 6 Jun 2021 03:49:37 +0000 (11:49 +0800)
committerLiqiang Tao <taolq@outlook.com>
Sun, 6 Jun 2021 04:03:02 +0000 (12:03 +0800)
commit478dc47292b2edfda25c9a3664b60b7ca8c55372
treede073844293477bc06c9618ef379f48ab8a8fcc1
parent551a697c5cf33275b66add4fc467fcf59084cffb
[llvm] Add interface to order inlining

This patch abstract Calls in Inliner:run() to InlineOrder.
With this patch, it's possible to customize the inlining order, i.e. use queue or priority queue.

Reviewed By: kazu

Differential Revision: https://reviews.llvm.org/D103315
llvm/lib/Transforms/IPO/Inliner.cpp