[all-commits] [llvm/llvm-project] 767db5: [llvm][NFC] Cleanup uses of std::function in Inlin...
Mircea Trofin via All-commits
all-commits at lists.llvm.org
Thu May 14 22:17:59 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 767db5be67cab5aa04d81227725765cad9620611
https://github.com/llvm/llvm-project/commit/767db5be67cab5aa04d81227725765cad9620611
Author: Mircea Trofin <mtrofin at google.com>
Date: 2020-05-14 (Thu, 14 May 2020)
Changed paths:
M llvm/include/llvm/Analysis/InlineCost.h
M llvm/include/llvm/Transforms/Utils/Cloning.h
M llvm/lib/Analysis/InlineAdvisor.cpp
M llvm/lib/Analysis/InlineCost.cpp
M llvm/lib/Target/AMDGPU/AMDGPUInline.cpp
M llvm/lib/Transforms/IPO/AlwaysInliner.cpp
M llvm/lib/Transforms/IPO/InlineSimple.cpp
M llvm/lib/Transforms/IPO/Inliner.cpp
M llvm/lib/Transforms/IPO/PartialInlining.cpp
M llvm/lib/Transforms/IPO/SampleProfile.cpp
M llvm/lib/Transforms/Utils/InlineFunction.cpp
Log Message:
-----------
[llvm][NFC] Cleanup uses of std::function in Inlining-related APIs
Summary:
Replacing uses of std::function pointers or refs, or Optional, to
function_ref, since the usage pattern allows that. If the function is
optional, using a default parameter value (nullptr). This led to a few
parameter reshufles, to push all optionals to the end of the parameter
list.
Reviewers: davidxl, dblaikie
Subscribers: arsenm, jvesely, nhaehnle, eraman, hiraditya, haicheng, kerbowa, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D79917
More information about the All-commits
mailing list