| OLD | NEW |
| 1 //===- subzero/src/IceTargetLowering.h - Lowering interface -----*- C++ -*-===// | 1 //===- subzero/src/IceTargetLowering.h - Lowering interface -----*- 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 // This file declares the TargetLowering and LoweringContext | 10 // This file declares the TargetLowering and LoweringContext |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 Inst *getNextInst(InstList::iterator &Iter) const { | 45 Inst *getNextInst(InstList::iterator &Iter) const { |
| 46 advanceForward(Iter); | 46 advanceForward(Iter); |
| 47 if (Iter == End) | 47 if (Iter == End) |
| 48 return NULL; | 48 return NULL; |
| 49 return *Iter; | 49 return *Iter; |
| 50 } | 50 } |
| 51 CfgNode *getNode() const { return Node; } | 51 CfgNode *getNode() const { return Node; } |
| 52 bool atEnd() const { return Cur == End; } | 52 bool atEnd() const { return Cur == End; } |
| 53 InstList::iterator getCur() const { return Cur; } | 53 InstList::iterator getCur() const { return Cur; } |
| 54 InstList::iterator getEnd() const { return End; } | 54 InstList::iterator getEnd() const { return End; } |
| 55 // Adaptor to enable range-based for loops. |
| 56 InstList::iterator begin() const { return getCur(); } |
| 57 InstList::iterator end() const { return getEnd(); } |
| 55 void insert(Inst *Inst); | 58 void insert(Inst *Inst); |
| 56 Inst *getLastInserted() const; | 59 Inst *getLastInserted() const; |
| 57 void advanceCur() { Cur = Next; } | 60 void advanceCur() { Cur = Next; } |
| 58 void advanceNext() { advanceForward(Next); } | 61 void advanceNext() { advanceForward(Next); } |
| 59 void setInsertPoint(const InstList::iterator &Position) { Next = Position; } | 62 void setInsertPoint(const InstList::iterator &Position) { Next = Position; } |
| 60 | 63 |
| 61 private: | 64 private: |
| 62 // Node is the argument to Inst::updateVars(). | 65 // Node is the argument to Inst::updateVars(). |
| 63 CfgNode *Node; | 66 CfgNode *Node; |
| 64 // Cur points to the current instruction being considered. It is | 67 // Cur points to the current instruction being considered. It is |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 private: | 258 private: |
| 256 TargetGlobalInitLowering(const TargetGlobalInitLowering &) | 259 TargetGlobalInitLowering(const TargetGlobalInitLowering &) |
| 257 LLVM_DELETED_FUNCTION; | 260 LLVM_DELETED_FUNCTION; |
| 258 TargetGlobalInitLowering & | 261 TargetGlobalInitLowering & |
| 259 operator=(const TargetGlobalInitLowering &) LLVM_DELETED_FUNCTION; | 262 operator=(const TargetGlobalInitLowering &) LLVM_DELETED_FUNCTION; |
| 260 }; | 263 }; |
| 261 | 264 |
| 262 } // end of namespace Ice | 265 } // end of namespace Ice |
| 263 | 266 |
| 264 #endif // SUBZERO_SRC_ICETARGETLOWERING_H | 267 #endif // SUBZERO_SRC_ICETARGETLOWERING_H |
| OLD | NEW |