[llvm] 3e1c787 - [IR] Remove arg_operands and getNumArgOperands (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 9 09:38:27 PDT 2021
Author: Kazu Hirata
Date: 2021-10-09T09:38:15-07:00
New Revision: 3e1c787b3160bed4146d3b2b5f922aeed3caafd7
URL: https://github.com/llvm/llvm-project/commit/3e1c787b3160bed4146d3b2b5f922aeed3caafd7
DIFF: https://github.com/llvm/llvm-project/commit/3e1c787b3160bed4146d3b2b5f922aeed3caafd7.diff
LOG: [IR] Remove arg_operands and getNumArgOperands (NFC)
The last uses were removed on Oct 8, 2021 in commit
46ef2e0bf995d8db4cbdf69f3d1bbc2487030ba0.
This is a relanding of b2ee408dde374d6a27a34746fd7c7b5bab97ea89.
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