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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
312 SizeT getNumber() const { return Number; } | 312 SizeT getNumber() const { return Number; } |
313 void emit(const Cfg *Func) const override; | 313 void emit(const Cfg *Func) const override; |
314 void emitIAS(const Cfg *Func) const override; | 314 void emitIAS(const Cfg *Func) const override; |
315 void dump(const Cfg *Func) const override; | 315 void dump(const Cfg *Func) const override; |
316 | 316 |
317 static bool classof(const Inst *Instr) { return isClassof(Instr, Label); } | 317 static bool classof(const Inst *Instr) { return isClassof(Instr, Label); } |
318 | 318 |
319 private: | 319 private: |
320 InstMIPS32Label(Cfg *Func, TargetMIPS32 *Target); | 320 InstMIPS32Label(Cfg *Func, TargetMIPS32 *Target); |
321 | 321 |
322 RelocOffset *OffsetReloc = nullptr; | 322 // RelocOffset *OffsetReloc = nullptr; |
John
2016/02/24 15:11:19
why? just remove the field if it is not used.
Jim Stichnoth
2016/02/24 15:16:50
Leaving that for a separate cleanup CL - unfortuna
| |
323 | 323 |
324 SizeT Number; // used for unique label generation. | 324 SizeT Number; // used for unique label generation. |
325 }; | 325 }; |
326 | 326 |
327 /// Direct branch instruction. | 327 /// Direct branch instruction. |
328 class InstMIPS32Br : public InstMIPS32 { | 328 class InstMIPS32Br : public InstMIPS32 { |
329 InstMIPS32Br() = delete; | 329 InstMIPS32Br() = delete; |
330 InstMIPS32Br(const InstMIPS32Br &) = delete; | 330 InstMIPS32Br(const InstMIPS32Br &) = delete; |
331 InstMIPS32Br &operator=(const InstMIPS32Br &) = delete; | 331 InstMIPS32Br &operator=(const InstMIPS32Br &) = delete; |
332 | 332 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
511 void emitSingleDestMultiSource(const Cfg *Func) const; | 511 void emitSingleDestMultiSource(const Cfg *Func) const; |
512 void emitSingleDestSingleSource(const Cfg *Func) const; | 512 void emitSingleDestSingleSource(const Cfg *Func) const; |
513 | 513 |
514 Variable *DestHi = nullptr; | 514 Variable *DestHi = nullptr; |
515 }; | 515 }; |
516 | 516 |
517 } // end of namespace MIPS32 | 517 } // end of namespace MIPS32 |
518 } // end of namespace Ice | 518 } // end of namespace Ice |
519 | 519 |
520 #endif // SUBZERO_SRC_ICEINSTMIPS32_H | 520 #endif // SUBZERO_SRC_ICEINSTMIPS32_H |
OLD | NEW |