| 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 961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 972 void addIndex(ConstantInteger32 *Index) { | 972 void addIndex(ConstantInteger32 *Index) { |
| 973 assert(CurrentIndex < NumIndexes); | 973 assert(CurrentIndex < NumIndexes); |
| 974 Indexes[CurrentIndex++] = Index; | 974 Indexes[CurrentIndex++] = Index; |
| 975 } | 975 } |
| 976 | 976 |
| 977 ConstantInteger32 *getIndex(SizeT Pos) const { | 977 ConstantInteger32 *getIndex(SizeT Pos) const { |
| 978 assert(Pos < NumIndexes); | 978 assert(Pos < NumIndexes); |
| 979 return Indexes[Pos]; | 979 return Indexes[Pos]; |
| 980 } | 980 } |
| 981 | 981 |
| 982 bool isMemoryWrite() const override { return false; } |
| 982 void dump(const Cfg *Func) const override; | 983 void dump(const Cfg *Func) const override; |
| 983 static bool classof(const Inst *Instr) { | 984 static bool classof(const Inst *Instr) { |
| 984 return Instr->getKind() == ShuffleVector; | 985 return Instr->getKind() == ShuffleVector; |
| 985 } | 986 } |
| 986 | 987 |
| 987 private: | 988 private: |
| 988 InstShuffleVector(Cfg *Func, Variable *Dest, Variable *Src0, Variable *Src1); | 989 InstShuffleVector(Cfg *Func, Variable *Dest, Variable *Src0, Variable *Src1); |
| 989 | 990 |
| 990 void destroy(Cfg *Func) override { | 991 void destroy(Cfg *Func) override { |
| 991 Func->deallocateArrayOf<ConstantInteger32 *>(Indexes); | 992 Func->deallocateArrayOf<ConstantInteger32 *>(Indexes); |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1124 static void noteHead(Ice::Inst *, Ice::Inst *) {} | 1125 static void noteHead(Ice::Inst *, Ice::Inst *) {} |
| 1125 void deleteNode(Ice::Inst *) {} | 1126 void deleteNode(Ice::Inst *) {} |
| 1126 | 1127 |
| 1127 private: | 1128 private: |
| 1128 mutable ilist_half_node<Ice::Inst> Sentinel; | 1129 mutable ilist_half_node<Ice::Inst> Sentinel; |
| 1129 }; | 1130 }; |
| 1130 | 1131 |
| 1131 } // end of namespace llvm | 1132 } // end of namespace llvm |
| 1132 | 1133 |
| 1133 #endif // SUBZERO_SRC_ICEINST_H | 1134 #endif // SUBZERO_SRC_ICEINST_H |
| OLD | NEW |