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