[IR] Use CallBase to simplify some code
authorCraig Topper <craig.topper@intel.com>
Wed, 30 Jan 2019 03:43:41 +0000 (03:43 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 30 Jan 2019 03:43:41 +0000 (03:43 +0000)
commita8710a6e7ea8bca33f25b0af796c34cf88bde066
tree68f5d4f412609cef516d8b759a54f6e74b39c362
parentf6cab162583c98838807cf020e3fbc99514c3c38
[IR] Use CallBase to simplify some code

Summary:
This patch does the following to simplify the asm-goto patch

-Move isInlineAsm from CallInst to CallBase to share with CallBrInst in the asm-goto patch.
-Forward CallSite's data_operands_begin()/data_operands_end() to CallBase's implementation.
-Forward CallSite's getOperandBundlesAsDefs to CallBase.

Reviewers: chandlerc

Reviewed By: chandlerc

Subscribers: nickdesaulniers, llvm-commits

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

llvm-svn: 352600
llvm/include/llvm/IR/CallSite.h
llvm/include/llvm/IR/InstrTypes.h
llvm/include/llvm/IR/Instructions.h