OLD | NEW |
1 //===- subzero/src/IceInst.h - High-level instructions ----------*- C++ -*-===// | 1 //===- subzero/src/IceInst.h - High-level instructions ----------*- C++ -*-===// |
2 // | 2 // |
3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 /// | 9 /// |
10 /// \file | 10 /// \file |
(...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1154 return Instr->getIterator(); | 1154 return Instr->getIterator(); |
1155 #endif // !PNACL_LLVM | 1155 #endif // !PNACL_LLVM |
1156 } | 1156 } |
1157 | 1157 |
1158 inline Inst *iteratorToInst(InstList::iterator Iter) { return &*Iter; } | 1158 inline Inst *iteratorToInst(InstList::iterator Iter) { return &*Iter; } |
1159 | 1159 |
1160 inline const Inst *iteratorToInst(InstList::const_iterator Iter) { | 1160 inline const Inst *iteratorToInst(InstList::const_iterator Iter) { |
1161 return &*Iter; | 1161 return &*Iter; |
1162 } | 1162 } |
1163 | 1163 |
| 1164 inline InstList::iterator |
| 1165 reverseToForwardIterator(InstList::reverse_iterator RI) { |
| 1166 #ifdef PNACL_LLVM |
| 1167 return RI.base(); |
| 1168 #else // !PNACL_LLVM |
| 1169 return ++RI.getReverse(); |
| 1170 #endif // !PNACL_LLVM |
| 1171 } |
| 1172 |
1164 } // end of namespace Ice | 1173 } // end of namespace Ice |
1165 | 1174 |
1166 #endif // SUBZERO_SRC_ICEINST_H | 1175 #endif // SUBZERO_SRC_ICEINST_H |
OLD | NEW |