[CallSite removal] Refactoring llvm::InlineFunction APIs
authorMircea Trofin <mtrofin@google.com>
Wed, 5 Jun 2019 21:28:13 +0000 (21:28 +0000)
committerMircea Trofin <mtrofin@google.com>
Wed, 5 Jun 2019 21:28:13 +0000 (21:28 +0000)
commite3eeacd70a891941b10ad5a911e054dd5c87b3e3
tree33eda0273e726ab1762fe50020f93e80da5d3196
parentac111e526dd7fdcc39f93fa4722e12fac1c8fcf4
[CallSite removal] Refactoring llvm::InlineFunction APIs

Summary:
This change only unifies the API previous API pair accepting
CallInst and InvokeInst, thus making it easier to refactor
inliner pass ode to CallBase. The implementation of the unified
API still relies on the CallSite implementation.

Reviewers: eraman, chandlerc, jdoerfert

Reviewed By: jdoerfert

Subscribers: jdoerfert, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D62283

llvm-svn: 362656
llvm/include/llvm/Transforms/Utils/Cloning.h
llvm/lib/Transforms/Utils/InlineFunction.cpp