| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 } | 154 } |
| 155 virtual void emitIAS(const Cfg *Func) const { emit(Func); } | 155 virtual void emitIAS(const Cfg *Func) const { emit(Func); } |
| 156 virtual void dump(const Cfg *Func) const; | 156 virtual void dump(const Cfg *Func) const; |
| 157 virtual void dumpExtras(const Cfg *Func) const; | 157 virtual void dumpExtras(const Cfg *Func) const; |
| 158 void dumpDecorated(const Cfg *Func) const; | 158 void dumpDecorated(const Cfg *Func) const; |
| 159 void emitSources(const Cfg *Func) const; | 159 void emitSources(const Cfg *Func) const; |
| 160 void dumpSources(const Cfg *Func) const; | 160 void dumpSources(const Cfg *Func) const; |
| 161 void dumpDest(const Cfg *Func) const; | 161 void dumpDest(const Cfg *Func) const; |
| 162 virtual bool isRedundantAssign() const { return false; } | 162 virtual bool isRedundantAssign() const { return false; } |
| 163 | 163 |
| 164 // TODO(jpp): Insts should not have non-trivial destructors, but they | 164 ~Inst() = default; |
| 165 // currently do. This dtor is marked final as a multi-step refactor that | |
| 166 // will eventually fix this problem. | |
| 167 virtual ~Inst() = default; | |
| 168 | 165 |
| 169 protected: | 166 protected: |
| 170 Inst(Cfg *Func, InstKind Kind, SizeT MaxSrcs, Variable *Dest); | 167 Inst(Cfg *Func, InstKind Kind, SizeT MaxSrcs, Variable *Dest); |
| 171 void addSource(Operand *Src) { | 168 void addSource(Operand *Src) { |
| 172 assert(Src); | 169 assert(Src); |
| 173 assert(NumSrcs < MaxSrcs); | 170 assert(NumSrcs < MaxSrcs); |
| 174 Srcs[NumSrcs++] = Src; | 171 Srcs[NumSrcs++] = Src; |
| 175 } | 172 } |
| 176 void setLastUse(SizeT VarIndex) { | 173 void setLastUse(SizeT VarIndex) { |
| 177 if (VarIndex < CHAR_BIT * sizeof(LiveRangesEnded)) | 174 if (VarIndex < CHAR_BIT * sizeof(LiveRangesEnded)) |
| (...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 972 static void noteHead(Ice::Inst *, Ice::Inst *) {} | 969 static void noteHead(Ice::Inst *, Ice::Inst *) {} |
| 973 void deleteNode(Ice::Inst *) {} | 970 void deleteNode(Ice::Inst *) {} |
| 974 | 971 |
| 975 private: | 972 private: |
| 976 mutable ilist_half_node<Ice::Inst> Sentinel; | 973 mutable ilist_half_node<Ice::Inst> Sentinel; |
| 977 }; | 974 }; |
| 978 | 975 |
| 979 } // end of namespace llvm | 976 } // end of namespace llvm |
| 980 | 977 |
| 981 #endif // SUBZERO_SRC_ICEINST_H | 978 #endif // SUBZERO_SRC_ICEINST_H |
| OLD | NEW |