| 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 605 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 616   InstPhi(const InstPhi &) = delete; | 616   InstPhi(const InstPhi &) = delete; | 
| 617   InstPhi &operator=(const InstPhi &) = delete; | 617   InstPhi &operator=(const InstPhi &) = delete; | 
| 618 | 618 | 
| 619 public: | 619 public: | 
| 620   static InstPhi *create(Cfg *Func, SizeT MaxSrcs, Variable *Dest) { | 620   static InstPhi *create(Cfg *Func, SizeT MaxSrcs, Variable *Dest) { | 
| 621     return new (Func->allocate<InstPhi>()) InstPhi(Func, MaxSrcs, Dest); | 621     return new (Func->allocate<InstPhi>()) InstPhi(Func, MaxSrcs, Dest); | 
| 622   } | 622   } | 
| 623   void addArgument(Operand *Source, CfgNode *Label); | 623   void addArgument(Operand *Source, CfgNode *Label); | 
| 624   Operand *getOperandForTarget(CfgNode *Target) const; | 624   Operand *getOperandForTarget(CfgNode *Target) const; | 
| 625   CfgNode *getLabel(SizeT Index) const { return Labels[Index]; } | 625   CfgNode *getLabel(SizeT Index) const { return Labels[Index]; } | 
|  | 626   void setLabel(SizeT Index, CfgNode *Label) { Labels[Index] = Label; } | 
| 626   void livenessPhiOperand(LivenessBV &Live, CfgNode *Target, | 627   void livenessPhiOperand(LivenessBV &Live, CfgNode *Target, | 
| 627                           Liveness *Liveness); | 628                           Liveness *Liveness); | 
| 628   Inst *lower(Cfg *Func); | 629   Inst *lower(Cfg *Func); | 
| 629   void dump(const Cfg *Func) const override; | 630   void dump(const Cfg *Func) const override; | 
| 630   static bool classof(const Inst *Instr) { return Instr->getKind() == Phi; } | 631   static bool classof(const Inst *Instr) { return Instr->getKind() == Phi; } | 
| 631 | 632 | 
| 632 private: | 633 private: | 
| 633   InstPhi(Cfg *Func, SizeT MaxSrcs, Variable *Dest); | 634   InstPhi(Cfg *Func, SizeT MaxSrcs, Variable *Dest); | 
| 634   void destroy(Cfg *Func) override { | 635   void destroy(Cfg *Func) override { | 
| 635     Func->deallocateArrayOf<CfgNode *>(Labels); | 636     Func->deallocateArrayOf<CfgNode *>(Labels); | 
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1000   static void noteHead(Ice::Inst *, Ice::Inst *) {} | 1001   static void noteHead(Ice::Inst *, Ice::Inst *) {} | 
| 1001   void deleteNode(Ice::Inst *) {} | 1002   void deleteNode(Ice::Inst *) {} | 
| 1002 | 1003 | 
| 1003 private: | 1004 private: | 
| 1004   mutable ilist_half_node<Ice::Inst> Sentinel; | 1005   mutable ilist_half_node<Ice::Inst> Sentinel; | 
| 1005 }; | 1006 }; | 
| 1006 | 1007 | 
| 1007 } // end of namespace llvm | 1008 } // end of namespace llvm | 
| 1008 | 1009 | 
| 1009 #endif // SUBZERO_SRC_ICEINST_H | 1010 #endif // SUBZERO_SRC_ICEINST_H | 
| OLD | NEW | 
|---|