[llvm-commits] [llvm] r161329 - /llvm/trunk/include/llvm/CodeGen/MachineOperand.h

Jakob Stoklund Olesen stoklund at 2pi.dk
Mon Aug 6 11:48:43 PDT 2012


Author: stoklund
Date: Mon Aug  6 13:48:43 2012
New Revision: 161329

URL: http://llvm.org/viewvc/llvm-project?rev=161329&view=rev
Log:
Put up warning signs around MO::getNextOperandForReg().

Modified:
    llvm/trunk/include/llvm/CodeGen/MachineOperand.h

Modified: llvm/trunk/include/llvm/CodeGen/MachineOperand.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineOperand.h?rev=161329&r1=161328&r2=161329&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineOperand.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineOperand.h Mon Aug  6 13:48:43 2012
@@ -302,8 +302,10 @@
     return !isUndef() && !isInternalRead() && (isUse() || getSubReg());
   }
 
-  /// getNextOperandForReg - Return the next MachineOperand in the function that
-  /// uses or defines this register.
+  /// getNextOperandForReg - Return the next MachineOperand in the linked list
+  /// of operands that use or define the same register.
+  /// Don't call this function directly, see the def-use iterators in
+  /// MachineRegisterInfo instead.
   MachineOperand *getNextOperandForReg() const {
     assert(isReg() && "This is not a register operand!");
     return Contents.Reg.Next;





More information about the llvm-commits mailing list