]> granicus.if.org Git - llvm/commit
[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)
commit1e8d4d3b2ff6793d7391e24ff8e9be1840827d13
tree8b5d9b6f85af27551b434ad023cde218c41dfab9
parentb59155ea9ac5866bfb1f4e58c7b83c1e3ddf7eaa
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352600 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/CallSite.h
include/llvm/IR/InstrTypes.h
include/llvm/IR/Instructions.h