@@ -468,13 +468,6 @@ class SILInstruction
468
468
// / Return the array of operands for this instruction.
469
469
ArrayRef<Operand> getAllOperands () const ;
470
470
471
- // / Return the ith operand of this instruction.
472
- // /
473
- // / Equivalent to performing getAllOperands()[index];
474
- const Operand &getOperandRef (unsigned index) const {
475
- return getAllOperands ()[index];
476
- }
477
-
478
471
// / Return the array of type dependent operands for this instruction.
479
472
// /
480
473
// / Type dependent operands are hidden operands, i.e. not part of the SIL
@@ -504,11 +497,6 @@ class SILInstruction
504
497
// / Return the array of mutable operands for this instruction.
505
498
MutableArrayRef<Operand> getAllOperands ();
506
499
507
- // / Return the ith mutable operand of this instruction.
508
- // /
509
- // / Equivalent to performing getAllOperands()[index];
510
- Operand &getOperandRef (unsigned index) { return getAllOperands ()[index]; }
511
-
512
500
// / Return the array of mutable type dependent operands for this instruction.
513
501
MutableArrayRef<Operand> getTypeDependentOperands ();
514
502
@@ -553,7 +541,19 @@ class SILInstruction
553
541
SILValue getOperand (unsigned Num) const {
554
542
return getAllOperands ()[Num].get ();
555
543
}
556
- Operand &getOperandRef (unsigned Num) { return getAllOperands ()[Num]; }
544
+
545
+ // / Return the ith mutable operand of this instruction.
546
+ // /
547
+ // / Equivalent to performing getAllOperands()[index];
548
+ Operand &getOperandRef (unsigned index) { return getAllOperands ()[index]; }
549
+
550
+ // / Return the ith operand of this instruction.
551
+ // /
552
+ // / Equivalent to performing getAllOperands()[index];
553
+ const Operand &getOperandRef (unsigned index) const {
554
+ return getAllOperands ()[index];
555
+ }
556
+
557
557
void setOperand (unsigned Num, SILValue V) { getAllOperands ()[Num].set (V); }
558
558
void swapOperands (unsigned Num1, unsigned Num2) {
559
559
getAllOperands ()[Num1].swap (getAllOperands ()[Num2]);
0 commit comments