OLD | NEW |
1 //===- subzero/src/IceInstX8632.h - Low-level x86 instructions --*- C++ -*-===// | 1 //===- subzero/src/IceInstX8632.h - Low-level x86 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 InstX8632 and OperandX8632 classes and | 10 // This file declares the InstX8632 and OperandX8632 classes and |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 Movd, | 168 Movd, |
169 Movp, | 169 Movp, |
170 Movq, | 170 Movq, |
171 Movss, | 171 Movss, |
172 Movsx, | 172 Movsx, |
173 Movzx, | 173 Movzx, |
174 Mul, | 174 Mul, |
175 Mulps, | 175 Mulps, |
176 Mulss, | 176 Mulss, |
177 Neg, | 177 Neg, |
| 178 Nop, |
178 Or, | 179 Or, |
179 Padd, | 180 Padd, |
180 Pand, | 181 Pand, |
181 Pandn, | 182 Pandn, |
182 Pblendvb, | 183 Pblendvb, |
183 Pcmpeq, | 184 Pcmpeq, |
184 Pcmpgt, | 185 Pcmpgt, |
185 Pextr, | 186 Pextr, |
186 Pinsr, | 187 Pinsr, |
187 Pmull, | 188 Pmull, |
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1069 virtual void dump(const Cfg *Func) const; | 1070 virtual void dump(const Cfg *Func) const; |
1070 static bool classof(const Inst *Inst) { return isClassof(Inst, Movzx); } | 1071 static bool classof(const Inst *Inst) { return isClassof(Inst, Movzx); } |
1071 | 1072 |
1072 private: | 1073 private: |
1073 InstX8632Movzx(Cfg *Func, Variable *Dest, Operand *Source); | 1074 InstX8632Movzx(Cfg *Func, Variable *Dest, Operand *Source); |
1074 InstX8632Movzx(const InstX8632Movzx &) LLVM_DELETED_FUNCTION; | 1075 InstX8632Movzx(const InstX8632Movzx &) LLVM_DELETED_FUNCTION; |
1075 InstX8632Movzx &operator=(const InstX8632Movzx &) LLVM_DELETED_FUNCTION; | 1076 InstX8632Movzx &operator=(const InstX8632Movzx &) LLVM_DELETED_FUNCTION; |
1076 virtual ~InstX8632Movzx() {} | 1077 virtual ~InstX8632Movzx() {} |
1077 }; | 1078 }; |
1078 | 1079 |
| 1080 // Nop instructions of varying length |
| 1081 class InstX8632Nop: public InstX8632 { |
| 1082 public: |
| 1083 static InstX8632Nop *create(Cfg *Func, SizeT Length) { |
| 1084 return new (Func->allocate<InstX8632Nop>()) |
| 1085 InstX8632Nop(Func, Length); |
| 1086 } |
| 1087 virtual void emit(const Cfg *Func) const; |
| 1088 virtual void dump(const Cfg *Func) const; |
| 1089 static bool classof(const Inst *Inst) { return isClassof(Inst, Nop); } |
| 1090 |
| 1091 private: |
| 1092 InstX8632Nop(Cfg *Func, SizeT Length); |
| 1093 InstX8632Nop(const InstX8632Nop &) LLVM_DELETED_FUNCTION; |
| 1094 InstX8632Nop &operator=(const InstX8632Nop &) LLVM_DELETED_FUNCTION; |
| 1095 virtual ~InstX8632Nop() {} |
| 1096 |
| 1097 SizeT Length; |
| 1098 }; |
| 1099 |
1079 // Fld - load a value onto the x87 FP stack. | 1100 // Fld - load a value onto the x87 FP stack. |
1080 class InstX8632Fld : public InstX8632 { | 1101 class InstX8632Fld : public InstX8632 { |
1081 public: | 1102 public: |
1082 static InstX8632Fld *create(Cfg *Func, Operand *Src) { | 1103 static InstX8632Fld *create(Cfg *Func, Operand *Src) { |
1083 return new (Func->allocate<InstX8632Fld>()) InstX8632Fld(Func, Src); | 1104 return new (Func->allocate<InstX8632Fld>()) InstX8632Fld(Func, Src); |
1084 } | 1105 } |
1085 virtual void emit(const Cfg *Func) const; | 1106 virtual void emit(const Cfg *Func) const; |
1086 virtual void dump(const Cfg *Func) const; | 1107 virtual void dump(const Cfg *Func) const; |
1087 static bool classof(const Inst *Inst) { return isClassof(Inst, Fld); } | 1108 static bool classof(const Inst *Inst) { return isClassof(Inst, Fld); } |
1088 | 1109 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1235 template <> void InstX8632Pmuludq::emit(const Cfg *Func) const; | 1256 template <> void InstX8632Pmuludq::emit(const Cfg *Func) const; |
1236 template <> void InstX8632Psll::emit(const Cfg *Func) const; | 1257 template <> void InstX8632Psll::emit(const Cfg *Func) const; |
1237 template <> void InstX8632Psra::emit(const Cfg *Func) const; | 1258 template <> void InstX8632Psra::emit(const Cfg *Func) const; |
1238 template <> void InstX8632Psub::emit(const Cfg *Func) const; | 1259 template <> void InstX8632Psub::emit(const Cfg *Func) const; |
1239 template <> void InstX8632Sqrtss::emit(const Cfg *Func) const; | 1260 template <> void InstX8632Sqrtss::emit(const Cfg *Func) const; |
1240 template <> void InstX8632Subss::emit(const Cfg *Func) const; | 1261 template <> void InstX8632Subss::emit(const Cfg *Func) const; |
1241 | 1262 |
1242 } // end of namespace Ice | 1263 } // end of namespace Ice |
1243 | 1264 |
1244 #endif // SUBZERO_SRC_ICEINSTX8632_H | 1265 #endif // SUBZERO_SRC_ICEINSTX8632_H |
OLD | NEW |