[llvm] c72722f - [IR] Remove arg_operands and getNumArgOperands (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 6 08:14:47 PDT 2021
Author: Kazu Hirata
Date: 2021-10-06T08:14:36-07:00
New Revision: c72722f45ef1aa6d78e1e6fee07ab6bd86980da8
URL: https://github.com/llvm/llvm-project/commit/c72722f45ef1aa6d78e1e6fee07ab6bd86980da8
DIFF: https://github.com/llvm/llvm-project/commit/c72722f45ef1aa6d78e1e6fee07ab6bd86980da8.diff
LOG: [IR] Remove arg_operands and getNumArgOperands (NFC)
The last uses were removed on Oct 5, 2021 in commit
3081de8c72fc9b6c0cc8b1bb5f02858b78ebaa4c.
Added:
Modified:
llvm/include/llvm/IR/InstrTypes.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/InstrTypes.h b/llvm/include/llvm/IR/InstrTypes.h
index 4546e80fc87a..a2180a8d4b2a 100644
--- a/llvm/include/llvm/IR/InstrTypes.h
+++ b/llvm/include/llvm/IR/InstrTypes.h
@@ -1325,16 +1325,6 @@ class CallBase : public Instruction {
bool arg_empty() const { return arg_end() == arg_begin(); }
unsigned arg_size() const { return arg_end() - arg_begin(); }
- // Legacy API names that duplicate the above and will be removed once users
- // are migrated.
- iterator_range<User::op_iterator> arg_operands() {
- return make_range(arg_begin(), arg_end());
- }
- iterator_range<User::const_op_iterator> arg_operands() const {
- return make_range(arg_begin(), arg_end());
- }
- unsigned getNumArgOperands() const { return arg_size(); }
-
Value *getArgOperand(unsigned i) const {
assert(i < arg_size() && "Out of bounds!");
return getOperand(i);
More information about the llvm-commits
mailing list