| 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 // This file implements the TargetLoweringMIPS32 class, which consists almost | 10 // This file implements the TargetLoweringMIPS32 class, which consists almost |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "IceInstMIPS32.h" | 23 #include "IceInstMIPS32.h" |
| 24 #include "IceLiveness.h" | 24 #include "IceLiveness.h" |
| 25 #include "IceOperand.h" | 25 #include "IceOperand.h" |
| 26 #include "IceRegistersMIPS32.h" | 26 #include "IceRegistersMIPS32.h" |
| 27 #include "IceTargetLoweringMIPS32.def" | 27 #include "IceTargetLoweringMIPS32.def" |
| 28 #include "IceTargetLoweringMIPS32.h" | 28 #include "IceTargetLoweringMIPS32.h" |
| 29 #include "IceUtils.h" | 29 #include "IceUtils.h" |
| 30 | 30 |
| 31 namespace Ice { | 31 namespace Ice { |
| 32 | 32 |
| 33 TargetMIPS32::TargetMIPS32(Cfg *Func) | 33 TargetMIPS32::TargetMIPS32(Cfg *Func) : TargetLowering(Func) { |
| 34 : TargetLowering(Func), UsesFramePointer(false) { | |
| 35 // TODO: Don't initialize IntegerRegisters and friends every time. | 34 // TODO: Don't initialize IntegerRegisters and friends every time. |
| 36 // Instead, initialize in some sort of static initializer for the | 35 // Instead, initialize in some sort of static initializer for the |
| 37 // class. | 36 // class. |
| 38 llvm::SmallBitVector IntegerRegisters(RegMIPS32::Reg_NUM); | 37 llvm::SmallBitVector IntegerRegisters(RegMIPS32::Reg_NUM); |
| 39 llvm::SmallBitVector FloatRegisters(RegMIPS32::Reg_NUM); | 38 llvm::SmallBitVector FloatRegisters(RegMIPS32::Reg_NUM); |
| 40 llvm::SmallBitVector VectorRegisters(RegMIPS32::Reg_NUM); | 39 llvm::SmallBitVector VectorRegisters(RegMIPS32::Reg_NUM); |
| 41 llvm::SmallBitVector InvalidRegisters(RegMIPS32::Reg_NUM); | 40 llvm::SmallBitVector InvalidRegisters(RegMIPS32::Reg_NUM); |
| 42 ScratchRegs.resize(RegMIPS32::Reg_NUM); | 41 ScratchRegs.resize(RegMIPS32::Reg_NUM); |
| 43 #define X(val, encode, name, scratch, preserved, stackptr, frameptr, isInt, \ | 42 #define X(val, encode, name, scratch, preserved, stackptr, frameptr, isInt, \ |
| 44 isFP) \ | 43 isFP) \ |
| (...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 void TargetDataMIPS32::lowerConstants() { | 693 void TargetDataMIPS32::lowerConstants() { |
| 695 if (Ctx->getFlags().getDisableTranslation()) | 694 if (Ctx->getFlags().getDisableTranslation()) |
| 696 return; | 695 return; |
| 697 llvm::report_fatal_error("Not yet implemented"); | 696 llvm::report_fatal_error("Not yet implemented"); |
| 698 } | 697 } |
| 699 | 698 |
| 700 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx) | 699 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx) |
| 701 : TargetHeaderLowering(Ctx) {} | 700 : TargetHeaderLowering(Ctx) {} |
| 702 | 701 |
| 703 } // end of namespace Ice | 702 } // end of namespace Ice |
| OLD | NEW |