[llvm] r206550 - iterator based accessors for CodeGenInstruction operand list.

Jim Grosbach grosbach at apple.com
Thu Apr 17 19:08:58 PDT 2014


Author: grosbach
Date: Thu Apr 17 21:08:58 2014
New Revision: 206550

URL: http://llvm.org/viewvc/llvm-project?rev=206550&view=rev
Log:
iterator based accessors for CodeGenInstruction operand list.

Modified:
    llvm/trunk/utils/TableGen/CodeGenInstruction.h

Modified: llvm/trunk/utils/TableGen/CodeGenInstruction.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenInstruction.h?rev=206550&r1=206549&r2=206550&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenInstruction.h (original)
+++ llvm/trunk/utils/TableGen/CodeGenInstruction.h Thu Apr 17 21:08:58 2014
@@ -149,6 +149,13 @@ namespace llvm {
     OperandInfo &back() { return OperandList.back(); }
     const OperandInfo &back() const { return OperandList.back(); }
 
+    typedef std::vector<OperandInfo>::iterator iterator;
+    typedef std::vector<OperandInfo>::const_iterator const_iterator;
+    iterator begin() { return OperandList.begin(); }
+    const_iterator begin() const { return OperandList.begin(); }
+    iterator end() { return OperandList.end(); }
+    const_iterator end() const { return OperandList.end(); }
+
 
     /// getOperandNamed - Return the index of the operand with the specified
     /// non-empty name.  If the instruction does not have an operand with the





More information about the llvm-commits mailing list