| OLD | NEW |
| 1 // | 1 // |
| 2 // The Subzero Code Generator | 2 // The Subzero Code Generator |
| 3 // | 3 // |
| 4 // This file is distributed under the University of Illinois Open Source | 4 // This file is distributed under the University of Illinois Open Source |
| 5 // License. See LICENSE.TXT for details. | 5 // License. See LICENSE.TXT for details. |
| 6 // | 6 // |
| 7 //===----------------------------------------------------------------------===// | 7 //===----------------------------------------------------------------------===// |
| 8 /// | 8 /// |
| 9 /// \file | 9 /// \file |
| 10 /// \brief Implements the TargetLoweringMIPS32 class, which consists almost | 10 /// \brief Implements the TargetLoweringMIPS32 class, which consists almost |
| (...skipping 2872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2883 return; | 2883 return; |
| 2884 } | 2884 } |
| 2885 case Intrinsics::Stacksave: { | 2885 case Intrinsics::Stacksave: { |
| 2886 UnimplementedLoweringError(this, Instr); | 2886 UnimplementedLoweringError(this, Instr); |
| 2887 return; | 2887 return; |
| 2888 } | 2888 } |
| 2889 case Intrinsics::Stackrestore: { | 2889 case Intrinsics::Stackrestore: { |
| 2890 UnimplementedLoweringError(this, Instr); | 2890 UnimplementedLoweringError(this, Instr); |
| 2891 return; | 2891 return; |
| 2892 } | 2892 } |
| 2893 case Intrinsics::Trap: | 2893 case Intrinsics::Trap: { |
| 2894 UnimplementedLoweringError(this, Instr); | 2894 const uint32_t TrapCodeZero = 0; |
| 2895 _teq(getZero(), getZero(), TrapCodeZero); |
| 2895 return; | 2896 return; |
| 2897 } |
| 2896 case Intrinsics::UnknownIntrinsic: | 2898 case Intrinsics::UnknownIntrinsic: |
| 2897 Func->setError("Should not be lowering UnknownIntrinsic"); | 2899 Func->setError("Should not be lowering UnknownIntrinsic"); |
| 2898 return; | 2900 return; |
| 2899 } | 2901 } |
| 2900 return; | 2902 return; |
| 2901 } | 2903 } |
| 2902 | 2904 |
| 2903 void TargetMIPS32::lowerLoad(const InstLoad *Instr) { | 2905 void TargetMIPS32::lowerLoad(const InstLoad *Instr) { |
| 2904 // A Load instruction can be treated the same as an Assign instruction, after | 2906 // A Load instruction can be treated the same as an Assign instruction, after |
| 2905 // the source operand is transformed into an OperandMIPS32Mem operand. | 2907 // the source operand is transformed into an OperandMIPS32Mem operand. |
| (...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3714 Str << "\t.set\t" | 3716 Str << "\t.set\t" |
| 3715 << "nomips16\n"; | 3717 << "nomips16\n"; |
| 3716 } | 3718 } |
| 3717 | 3719 |
| 3718 SmallBitVector TargetMIPS32::TypeToRegisterSet[RCMIPS32_NUM]; | 3720 SmallBitVector TargetMIPS32::TypeToRegisterSet[RCMIPS32_NUM]; |
| 3719 SmallBitVector TargetMIPS32::TypeToRegisterSetUnfiltered[RCMIPS32_NUM]; | 3721 SmallBitVector TargetMIPS32::TypeToRegisterSetUnfiltered[RCMIPS32_NUM]; |
| 3720 SmallBitVector TargetMIPS32::RegisterAliases[RegMIPS32::Reg_NUM]; | 3722 SmallBitVector TargetMIPS32::RegisterAliases[RegMIPS32::Reg_NUM]; |
| 3721 | 3723 |
| 3722 } // end of namespace MIPS32 | 3724 } // end of namespace MIPS32 |
| 3723 } // end of namespace Ice | 3725 } // end of namespace Ice |
| OLD | NEW |