llvm.org GIT mirror llvm / 7b771af
iterator_range accessor for CodeGenTarget instruction list. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206551 91177308-0d34-0410-b5e6-96231b3b80d8 Jim Grosbach 6 years ago
2 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
154154 const_iterator begin() const { return OperandList.begin(); }
155155 iterator end() { return OperandList.end(); }
156156 const_iterator end() const { return OperandList.end(); }
157
158157
159158 /// getOperandNamed - Return the index of the operand with the specified
160159 /// non-empty name. If the instruction does not have an operand with the
170170 typedef std::vector::const_iterator inst_iterator;
171171 inst_iterator inst_begin() const{return getInstructionsByEnumValue().begin();}
172172 inst_iterator inst_end() const { return getInstructionsByEnumValue().end(); }
173 iterator_range instructions() const {
174 return iterator_range(inst_begin(), inst_end());
175 }
173176
174177
175178 /// isLittleEndianEncoding - are instruction bit patterns defined as [0..n]?