[IPO] Reorder parameters of InlineFunction (NFC)
authorKazu Hirata <kazu@google.com>
Tue, 20 Sep 2022 16:09:38 +0000 (09:09 -0700)
committerKazu Hirata <kazu@google.com>
Tue, 20 Sep 2022 16:09:38 +0000 (09:09 -0700)
commit00874c48ea4d291908517afaab50d1dcbfb016c3
treea7155b0eaa409981ab2345c3c0e469aac9c0642e
parentcb375e8c1f393b53d6516950969a5caac42bf178
[IPO] Reorder parameters of InlineFunction (NFC)

With the recent addition of new parameter MergeAttributes (D134117),
callers need to specify several default parameters before getting to
specify the new parameter.

This patch reorders the parameters so that callers do not have to
specify as many default parameters.

Differential Revision: https://reviews.llvm.org/D134125
llvm/include/llvm/Transforms/Utils/Cloning.h
llvm/lib/Transforms/IPO/AlwaysInliner.cpp
llvm/lib/Transforms/IPO/Inliner.cpp
llvm/lib/Transforms/IPO/ModuleInliner.cpp
llvm/lib/Transforms/IPO/PartialInlining.cpp
llvm/lib/Transforms/IPO/SampleProfile.cpp
llvm/lib/Transforms/Utils/InlineFunction.cpp