OLD | NEW |
1 //===- subzero/src/IceInstMIPS32.h - MIPS32 machine instrs --*- C++ -*-----===// | 1 //===- subzero/src/IceInstMIPS32.h - MIPS32 machine instrs --*- 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 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
921 InstMIPS32Trap(const InstMIPS32Trap &) = delete; | 921 InstMIPS32Trap(const InstMIPS32Trap &) = delete; |
922 InstMIPS32Trap &operator=(const InstMIPS32Trap &) = delete; | 922 InstMIPS32Trap &operator=(const InstMIPS32Trap &) = delete; |
923 | 923 |
924 public: | 924 public: |
925 static InstMIPS32Trap *create(Cfg *Func, Operand *Src0, Operand *Src1, | 925 static InstMIPS32Trap *create(Cfg *Func, Operand *Src0, Operand *Src1, |
926 uint32_t Tcode) { | 926 uint32_t Tcode) { |
927 return new (Func->allocate<InstMIPS32Trap>()) | 927 return new (Func->allocate<InstMIPS32Trap>()) |
928 InstMIPS32Trap(Func, Src0, Src1, Tcode); | 928 InstMIPS32Trap(Func, Src0, Src1, Tcode); |
929 } | 929 } |
930 | 930 |
| 931 uint32_t getTrapCode() const { return TrapCode; } |
| 932 |
931 void emit(const Cfg *Func) const override { | 933 void emit(const Cfg *Func) const override { |
932 if (!BuildDefs::dump()) | 934 if (!BuildDefs::dump()) |
933 return; | 935 return; |
934 Ostream &Str = Func->getContext()->getStrEmit(); | 936 Ostream &Str = Func->getContext()->getStrEmit(); |
935 Str << "\t" << Opcode << "\t"; | 937 Str << "\t" << Opcode << "\t"; |
936 getSrc(0)->emit(Func); | 938 getSrc(0)->emit(Func); |
937 Str << ", "; | 939 Str << ", "; |
938 getSrc(1)->emit(Func); | 940 getSrc(1)->emit(Func); |
939 Str << ", " << TrapCode; | 941 Str << ", " << TrapCode; |
940 } | 942 } |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1268 template <> void InstMIPS32Slti::emitIAS(const Cfg *Func) const; | 1270 template <> void InstMIPS32Slti::emitIAS(const Cfg *Func) const; |
1269 template <> void InstMIPS32Sltiu::emitIAS(const Cfg *Func) const; | 1271 template <> void InstMIPS32Sltiu::emitIAS(const Cfg *Func) const; |
1270 template <> void InstMIPS32Sltu::emitIAS(const Cfg *Func) const; | 1272 template <> void InstMIPS32Sltu::emitIAS(const Cfg *Func) const; |
1271 template <> void InstMIPS32Sqrt_d::emitIAS(const Cfg *Func) const; | 1273 template <> void InstMIPS32Sqrt_d::emitIAS(const Cfg *Func) const; |
1272 template <> void InstMIPS32Sqrt_s::emitIAS(const Cfg *Func) const; | 1274 template <> void InstMIPS32Sqrt_s::emitIAS(const Cfg *Func) const; |
1273 template <> void InstMIPS32Sw::emitIAS(const Cfg *Func) const; | 1275 template <> void InstMIPS32Sw::emitIAS(const Cfg *Func) const; |
1274 template <> void InstMIPS32Sra::emitIAS(const Cfg *Func) const; | 1276 template <> void InstMIPS32Sra::emitIAS(const Cfg *Func) const; |
1275 template <> void InstMIPS32Srl::emitIAS(const Cfg *Func) const; | 1277 template <> void InstMIPS32Srl::emitIAS(const Cfg *Func) const; |
1276 template <> void InstMIPS32Sub_d::emitIAS(const Cfg *Func) const; | 1278 template <> void InstMIPS32Sub_d::emitIAS(const Cfg *Func) const; |
1277 template <> void InstMIPS32Sub_s::emitIAS(const Cfg *Func) const; | 1279 template <> void InstMIPS32Sub_s::emitIAS(const Cfg *Func) const; |
| 1280 template <> void InstMIPS32Teq::emitIAS(const Cfg *Func) const; |
1278 template <> void InstMIPS32Trunc_l_d::emitIAS(const Cfg *Func) const; | 1281 template <> void InstMIPS32Trunc_l_d::emitIAS(const Cfg *Func) const; |
1279 template <> void InstMIPS32Trunc_l_s::emitIAS(const Cfg *Func) const; | 1282 template <> void InstMIPS32Trunc_l_s::emitIAS(const Cfg *Func) const; |
1280 template <> void InstMIPS32Trunc_w_d::emitIAS(const Cfg *Func) const; | 1283 template <> void InstMIPS32Trunc_w_d::emitIAS(const Cfg *Func) const; |
1281 template <> void InstMIPS32Trunc_w_s::emitIAS(const Cfg *Func) const; | 1284 template <> void InstMIPS32Trunc_w_s::emitIAS(const Cfg *Func) const; |
1282 template <> void InstMIPS32Xor::emitIAS(const Cfg *Func) const; | 1285 template <> void InstMIPS32Xor::emitIAS(const Cfg *Func) const; |
1283 template <> void InstMIPS32Xori::emitIAS(const Cfg *Func) const; | 1286 template <> void InstMIPS32Xori::emitIAS(const Cfg *Func) const; |
1284 | 1287 |
1285 } // end of namespace MIPS32 | 1288 } // end of namespace MIPS32 |
1286 } // end of namespace Ice | 1289 } // end of namespace Ice |
1287 | 1290 |
1288 #endif // SUBZERO_SRC_ICEINSTMIPS32_H | 1291 #endif // SUBZERO_SRC_ICEINSTMIPS32_H |
OLD | NEW |