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 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
946 } | 946 } |
947 | 947 |
948 void emitIAS(const Cfg *Func) const override { | 948 void emitIAS(const Cfg *Func) const override { |
949 (void)Func; | 949 (void)Func; |
950 llvm_unreachable("Not yet implemented"); | 950 llvm_unreachable("Not yet implemented"); |
951 } | 951 } |
952 | 952 |
953 void dump(const Cfg *Func) const override { | 953 void dump(const Cfg *Func) const override { |
954 if (!BuildDefs::dump()) | 954 if (!BuildDefs::dump()) |
955 return; | 955 return; |
956 Ostream &Str = Func->getContext()->getStrEmit(); | 956 Ostream &Str = Func->getContext()->getStrDump(); |
957 Str << "\t" << Opcode << "\t"; | 957 dumpOpcode(Str, Opcode, getSrc(0)->getType()); |
958 getSrc(0)->emit(Func); | 958 Str << " "; |
959 Str << ", "; | 959 dumpSources(Func); |
960 getSrc(1)->emit(Func); | |
961 Str << ", " << TrapCode; | 960 Str << ", " << TrapCode; |
962 } | 961 } |
963 | 962 |
964 static bool classof(const Inst *Inst) { return isClassof(Inst, K); } | 963 static bool classof(const Inst *Inst) { return isClassof(Inst, K); } |
965 | 964 |
966 private: | 965 private: |
967 InstMIPS32Trap(Cfg *Func, Operand *Src0, Operand *Src1, const uint32_t Tcode) | 966 InstMIPS32Trap(Cfg *Func, Operand *Src0, Operand *Src1, const uint32_t Tcode) |
968 : InstMIPS32(Func, K, 2, nullptr), TrapCode(Tcode) { | 967 : InstMIPS32(Func, K, 2, nullptr), TrapCode(Tcode) { |
969 addSource(Src0); | 968 addSource(Src0); |
970 addSource(Src1); | 969 addSource(Src1); |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1303 template <> void InstMIPS32Trunc_l_s::emitIAS(const Cfg *Func) const; | 1302 template <> void InstMIPS32Trunc_l_s::emitIAS(const Cfg *Func) const; |
1304 template <> void InstMIPS32Trunc_w_d::emitIAS(const Cfg *Func) const; | 1303 template <> void InstMIPS32Trunc_w_d::emitIAS(const Cfg *Func) const; |
1305 template <> void InstMIPS32Trunc_w_s::emitIAS(const Cfg *Func) const; | 1304 template <> void InstMIPS32Trunc_w_s::emitIAS(const Cfg *Func) const; |
1306 template <> void InstMIPS32Xor::emitIAS(const Cfg *Func) const; | 1305 template <> void InstMIPS32Xor::emitIAS(const Cfg *Func) const; |
1307 template <> void InstMIPS32Xori::emitIAS(const Cfg *Func) const; | 1306 template <> void InstMIPS32Xori::emitIAS(const Cfg *Func) const; |
1308 | 1307 |
1309 } // end of namespace MIPS32 | 1308 } // end of namespace MIPS32 |
1310 } // end of namespace Ice | 1309 } // end of namespace Ice |
1311 | 1310 |
1312 #endif // SUBZERO_SRC_ICEINSTMIPS32_H | 1311 #endif // SUBZERO_SRC_ICEINSTMIPS32_H |
OLD | NEW |