llvm.org GIT mirror llvm / 3db76cc
iterator based accessors for CodeGenInstruction operand list. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206550 91177308-0d34-0410-b5e6-96231b3b80d8 Jim Grosbach 6 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
147147 OperandInfo &operator[](unsigned i) { return OperandList[i]; }
148148 OperandInfo &back() { return OperandList.back(); }
149149 const OperandInfo &back() const { return OperandList.back(); }
150
151 typedef std::vector::iterator iterator;
152 typedef std::vector::const_iterator const_iterator;
153 iterator begin() { return OperandList.begin(); }
154 const_iterator begin() const { return OperandList.begin(); }
155 iterator end() { return OperandList.end(); }
156 const_iterator end() const { return OperandList.end(); }
150157
151158
152159 /// getOperandNamed - Return the index of the operand with the specified