| 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 |
| 11 // entirely of the lowering sequence for each high-level instruction. | 11 // entirely of the lowering sequence for each high-level instruction. |
| 12 // | 12 // |
| 13 //===----------------------------------------------------------------------===// | 13 //===----------------------------------------------------------------------===// |
| 14 | 14 |
| 15 #include "llvm/Support/MathExtras.h" | 15 #include "IceTargetLoweringMIPS32.h" |
| 16 | 16 |
| 17 #include "IceCfg.h" | 17 #include "IceCfg.h" |
| 18 #include "IceCfgNode.h" | 18 #include "IceCfgNode.h" |
| 19 #include "IceClFlags.h" | 19 #include "IceClFlags.h" |
| 20 #include "IceDefs.h" | 20 #include "IceDefs.h" |
| 21 #include "IceELFObjectWriter.h" | 21 #include "IceELFObjectWriter.h" |
| 22 #include "IceGlobalInits.h" | 22 #include "IceGlobalInits.h" |
| 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" | |
| 29 #include "IceUtils.h" | 28 #include "IceUtils.h" |
| 29 #include "llvm/Support/MathExtras.h" |
| 30 | 30 |
| 31 namespace Ice { | 31 namespace Ice { |
| 32 | 32 |
| 33 TargetMIPS32::TargetMIPS32(Cfg *Func) : TargetLowering(Func) { | 33 TargetMIPS32::TargetMIPS32(Cfg *Func) : TargetLowering(Func) { |
| 34 // TODO: Don't initialize IntegerRegisters and friends every time. | 34 // TODO: Don't initialize IntegerRegisters and friends every time. |
| 35 // Instead, initialize in some sort of static initializer for the | 35 // Instead, initialize in some sort of static initializer for the |
| 36 // class. | 36 // class. |
| 37 llvm::SmallBitVector IntegerRegisters(RegMIPS32::Reg_NUM); | 37 llvm::SmallBitVector IntegerRegisters(RegMIPS32::Reg_NUM); |
| 38 llvm::SmallBitVector FloatRegisters(RegMIPS32::Reg_NUM); | 38 llvm::SmallBitVector FloatRegisters(RegMIPS32::Reg_NUM); |
| 39 llvm::SmallBitVector VectorRegisters(RegMIPS32::Reg_NUM); | 39 llvm::SmallBitVector VectorRegisters(RegMIPS32::Reg_NUM); |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 void TargetDataMIPS32::lowerConstants() { | 693 void TargetDataMIPS32::lowerConstants() { |
| 694 if (Ctx->getFlags().getDisableTranslation()) | 694 if (Ctx->getFlags().getDisableTranslation()) |
| 695 return; | 695 return; |
| 696 llvm::report_fatal_error("Not yet implemented"); | 696 llvm::report_fatal_error("Not yet implemented"); |
| 697 } | 697 } |
| 698 | 698 |
| 699 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx) | 699 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx) |
| 700 : TargetHeaderLowering(Ctx) {} | 700 : TargetHeaderLowering(Ctx) {} |
| 701 | 701 |
| 702 } // end of namespace Ice | 702 } // end of namespace Ice |
| OLD | NEW |