| 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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 | 686 |
| 687 public: | 687 public: |
| 688 static InstStore *create(Cfg *Func, Operand *Data, Operand *Addr, | 688 static InstStore *create(Cfg *Func, Operand *Data, Operand *Addr, |
| 689 uint32_t Align = 1) { | 689 uint32_t Align = 1) { |
| 690 // TODO(kschimpf) Stop ignoring alignment specification. | 690 // TODO(kschimpf) Stop ignoring alignment specification. |
| 691 (void)Align; | 691 (void)Align; |
| 692 return new (Func->allocate<InstStore>()) InstStore(Func, Data, Addr); | 692 return new (Func->allocate<InstStore>()) InstStore(Func, Data, Addr); |
| 693 } | 693 } |
| 694 Operand *getAddr() const { return getSrc(1); } | 694 Operand *getAddr() const { return getSrc(1); } |
| 695 Operand *getData() const { return getSrc(0); } | 695 Operand *getData() const { return getSrc(0); } |
| 696 Variable *getRmwBeacon() const { return llvm::dyn_cast<Variable>(getSrc(2)); } | 696 Variable *getRmwBeacon() const; |
| 697 void setRmwBeacon(Variable *Beacon); | 697 void setRmwBeacon(Variable *Beacon); |
| 698 void dump(const Cfg *Func) const override; | 698 void dump(const Cfg *Func) const override; |
| 699 static bool classof(const Inst *Inst) { return Inst->getKind() == Store; } | 699 static bool classof(const Inst *Inst) { return Inst->getKind() == Store; } |
| 700 | 700 |
| 701 private: | 701 private: |
| 702 InstStore(Cfg *Func, Operand *Data, Operand *Addr); | 702 InstStore(Cfg *Func, Operand *Data, Operand *Addr); |
| 703 }; | 703 }; |
| 704 | 704 |
| 705 /// Switch instruction. The single source operand is captured as | 705 /// Switch instruction. The single source operand is captured as |
| 706 /// getSrc(0). | 706 /// getSrc(0). |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 982 static void noteHead(Ice::Inst *, Ice::Inst *) {} | 982 static void noteHead(Ice::Inst *, Ice::Inst *) {} |
| 983 void deleteNode(Ice::Inst *) {} | 983 void deleteNode(Ice::Inst *) {} |
| 984 | 984 |
| 985 private: | 985 private: |
| 986 mutable ilist_half_node<Ice::Inst> Sentinel; | 986 mutable ilist_half_node<Ice::Inst> Sentinel; |
| 987 }; | 987 }; |
| 988 | 988 |
| 989 } // end of namespace llvm | 989 } // end of namespace llvm |
| 990 | 990 |
| 991 #endif // SUBZERO_SRC_ICEINST_H | 991 #endif // SUBZERO_SRC_ICEINST_H |
| OLD | NEW |