[llvm] Add interface to order inlining
authorLiqiang Tao <taolq@outlook.com>
Mon, 7 Jun 2021 10:26:34 +0000 (18:26 +0800)
committerLiqiang Tao <taolq@outlook.com>
Mon, 7 Jun 2021 10:27:55 +0000 (18:27 +0800)
commit4a0de622c34e0cb86b22a8e5f38dfd388e07e2fc
treedeb73ab6aa3d0ad1114f12afa897466866aeb2c2
parentc5ffe9798850a699c2229899712ca9d153f2a4b8
[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,
e.g. use queue or priority queue.

Reviewed By: kazu

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