[llvm] b2ee408 - [IR] Remove arg_operands and getNumArgOperands (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 8 08:26:34 PDT 2021


Author: Kazu Hirata
Date: 2021-10-08T08:26:23-07:00
New Revision: b2ee408dde374d6a27a34746fd7c7b5bab97ea89

URL: https://github.com/llvm/llvm-project/commit/b2ee408dde374d6a27a34746fd7c7b5bab97ea89
DIFF: https://github.com/llvm/llvm-project/commit/b2ee408dde374d6a27a34746fd7c7b5bab97ea89.diff

LOG: [IR] Remove arg_operands and getNumArgOperands (NFC)

The last uses were removed on Oct 7, 2021 in commit
80e39366ee403ac420f2087883550398e5fbf968.

This is a relanding of c72722f45ef1aa6d78e1e6fee07ab6bd86980da8.

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 4546e80fc87ad..a2180a8d4b2a3 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