[PATCH] D79917: [llvm][NFC] Cleanup uses of std::function in Inlining-related APIs

Mircea Trofin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 13 18:02:22 PDT 2020


mtrofin created this revision.
mtrofin added reviewers: davidxl, dblaikie.
Herald added subscribers: llvm-commits, kerbowa, haicheng, hiraditya, eraman, nhaehnle, jvesely, arsenm.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79917

Files:
  llvm/include/llvm/Analysis/InlineCost.h
  llvm/include/llvm/Transforms/Utils/Cloning.h
  llvm/lib/Analysis/InlineAdvisor.cpp
  llvm/lib/Analysis/InlineCost.cpp
  llvm/lib/Target/AMDGPU/AMDGPUInline.cpp
  llvm/lib/Transforms/IPO/AlwaysInliner.cpp
  llvm/lib/Transforms/IPO/InlineSimple.cpp
  llvm/lib/Transforms/IPO/Inliner.cpp
  llvm/lib/Transforms/IPO/PartialInlining.cpp
  llvm/lib/Transforms/IPO/SampleProfile.cpp
  llvm/lib/Transforms/Utils/InlineFunction.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79917.263899.patch
Type: text/x-patch
Size: 28939 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200514/00e5a00d/attachment.bin>


More information about the llvm-commits mailing list