| 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 // This file declares the Inst class and its target-independent | 10 // This file declares the Inst class and its target-independent | 
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 390   InstCast &operator=(const InstCast &) = delete; | 390   InstCast &operator=(const InstCast &) = delete; | 
| 391 | 391 | 
| 392 public: | 392 public: | 
| 393   enum OpKind { | 393   enum OpKind { | 
| 394 #define X(tag, str) tag, | 394 #define X(tag, str) tag, | 
| 395     ICEINSTCAST_TABLE | 395     ICEINSTCAST_TABLE | 
| 396 #undef X | 396 #undef X | 
| 397         _num | 397         _num | 
| 398   }; | 398   }; | 
| 399 | 399 | 
|  | 400   static const char *getCastName(OpKind Kind); | 
|  | 401 | 
| 400   static InstCast *create(Cfg *Func, OpKind CastKind, Variable *Dest, | 402   static InstCast *create(Cfg *Func, OpKind CastKind, Variable *Dest, | 
| 401                           Operand *Source) { | 403                           Operand *Source) { | 
| 402     return new (Func->allocateInst<InstCast>()) | 404     return new (Func->allocateInst<InstCast>()) | 
| 403         InstCast(Func, CastKind, Dest, Source); | 405         InstCast(Func, CastKind, Dest, Source); | 
| 404   } | 406   } | 
| 405   OpKind getCastKind() const { return CastKind; } | 407   OpKind getCastKind() const { return CastKind; } | 
| 406   void dump(const Cfg *Func) const override; | 408   void dump(const Cfg *Func) const override; | 
| 407   static bool classof(const Inst *Inst) { return Inst->getKind() == Cast; } | 409   static bool classof(const Inst *Inst) { return Inst->getKind() == Cast; } | 
| 408 | 410 | 
| 409 private: | 411 private: | 
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 859   static void noteHead(Ice::Inst *, Ice::Inst *) {} | 861   static void noteHead(Ice::Inst *, Ice::Inst *) {} | 
| 860   void deleteNode(Ice::Inst *) {} | 862   void deleteNode(Ice::Inst *) {} | 
| 861 | 863 | 
| 862 private: | 864 private: | 
| 863   mutable ilist_half_node<Ice::Inst> Sentinel; | 865   mutable ilist_half_node<Ice::Inst> Sentinel; | 
| 864 }; | 866 }; | 
| 865 | 867 | 
| 866 } // end of namespace llvm | 868 } // end of namespace llvm | 
| 867 | 869 | 
| 868 #endif // SUBZERO_SRC_ICEINST_H | 870 #endif // SUBZERO_SRC_ICEINST_H | 
| OLD | NEW | 
|---|