| OLD | NEW |
| 1 //===- subzero/src/IceTargetLoweringMIPS32.cpp - MIPS32 lowering ----------===// | 1 //===- subzero/src/IceTargetLoweringMIPS32.cpp - MIPS32 lowering ----------===// |
| 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 13 matching lines...) Expand all Loading... |
| 24 #include "IceInstMIPS32.h" | 24 #include "IceInstMIPS32.h" |
| 25 #include "IceLiveness.h" | 25 #include "IceLiveness.h" |
| 26 #include "IceOperand.h" | 26 #include "IceOperand.h" |
| 27 #include "IceRegistersMIPS32.h" | 27 #include "IceRegistersMIPS32.h" |
| 28 #include "IceTargetLoweringMIPS32.def" | 28 #include "IceTargetLoweringMIPS32.def" |
| 29 #include "IceUtils.h" | 29 #include "IceUtils.h" |
| 30 #include "llvm/Support/MathExtras.h" | 30 #include "llvm/Support/MathExtras.h" |
| 31 | 31 |
| 32 namespace Ice { | 32 namespace Ice { |
| 33 | 33 |
| 34 namespace { | |
| 35 void UnimplementedError(const ClFlags &Flags) { | |
| 36 if (!Flags.getSkipUnimplemented()) { | |
| 37 // Use llvm_unreachable instead of report_fatal_error, which gives better | |
| 38 // stack traces. | |
| 39 llvm_unreachable("Not yet implemented"); | |
| 40 abort(); | |
| 41 } | |
| 42 } | |
| 43 } // end of anonymous namespace | |
| 44 | |
| 45 TargetMIPS32::TargetMIPS32(Cfg *Func) : TargetLowering(Func) { | 34 TargetMIPS32::TargetMIPS32(Cfg *Func) : TargetLowering(Func) { |
| 46 // TODO: Don't initialize IntegerRegisters and friends every time. Instead, | 35 // TODO: Don't initialize IntegerRegisters and friends every time. Instead, |
| 47 // initialize in some sort of static initializer for the class. | 36 // initialize in some sort of static initializer for the class. |
| 48 llvm::SmallBitVector IntegerRegisters(RegMIPS32::Reg_NUM); | 37 llvm::SmallBitVector IntegerRegisters(RegMIPS32::Reg_NUM); |
| 49 llvm::SmallBitVector FloatRegisters(RegMIPS32::Reg_NUM); | 38 llvm::SmallBitVector FloatRegisters(RegMIPS32::Reg_NUM); |
| 50 llvm::SmallBitVector VectorRegisters(RegMIPS32::Reg_NUM); | 39 llvm::SmallBitVector VectorRegisters(RegMIPS32::Reg_NUM); |
| 51 llvm::SmallBitVector InvalidRegisters(RegMIPS32::Reg_NUM); | 40 llvm::SmallBitVector InvalidRegisters(RegMIPS32::Reg_NUM); |
| 52 ScratchRegs.resize(RegMIPS32::Reg_NUM); | 41 ScratchRegs.resize(RegMIPS32::Reg_NUM); |
| 53 #define X(val, encode, name, scratch, preserved, stackptr, frameptr, isInt, \ | 42 #define X(val, encode, name, scratch, preserved, stackptr, frameptr, isInt, \ |
| 54 isFP) \ | 43 isFP) \ |
| (...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 void TargetDataMIPS32::lowerJumpTables() { | 702 void TargetDataMIPS32::lowerJumpTables() { |
| 714 if (Ctx->getFlags().getDisableTranslation()) | 703 if (Ctx->getFlags().getDisableTranslation()) |
| 715 return; | 704 return; |
| 716 UnimplementedError(Ctx->getFlags()); | 705 UnimplementedError(Ctx->getFlags()); |
| 717 } | 706 } |
| 718 | 707 |
| 719 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx) | 708 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx) |
| 720 : TargetHeaderLowering(Ctx) {} | 709 : TargetHeaderLowering(Ctx) {} |
| 721 | 710 |
| 722 } // end of namespace Ice | 711 } // end of namespace Ice |
| OLD | NEW |