| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 // Specially mark SP as an "argument" so that it is considered | 247 // Specially mark SP as an "argument" so that it is considered |
| 248 // live upon function entry. | 248 // live upon function entry. |
| 249 if (RegNum == RegMIPS32::Reg_SP) { | 249 if (RegNum == RegMIPS32::Reg_SP) { |
| 250 Func->addImplicitArg(Reg); | 250 Func->addImplicitArg(Reg); |
| 251 Reg->setIgnoreLiveness(); | 251 Reg->setIgnoreLiveness(); |
| 252 } | 252 } |
| 253 } | 253 } |
| 254 return Reg; | 254 return Reg; |
| 255 } | 255 } |
| 256 | 256 |
| 257 void TargetMIPS32::emitJumpTable(const Cfg *Func, |
| 258 const InstJumpTable *JumpTable) const { |
| 259 (void)JumpTable; |
| 260 UnimplementedError(Func->getContext()->getFlags()); |
| 261 } |
| 262 |
| 257 void TargetMIPS32::emitVariable(const Variable *Var) const { | 263 void TargetMIPS32::emitVariable(const Variable *Var) const { |
| 258 Ostream &Str = Ctx->getStrEmit(); | 264 Ostream &Str = Ctx->getStrEmit(); |
| 259 (void)Var; | 265 (void)Var; |
| 260 (void)Str; | 266 (void)Str; |
| 261 UnimplementedError(Func->getContext()->getFlags()); | 267 UnimplementedError(Func->getContext()->getFlags()); |
| 262 } | 268 } |
| 263 | 269 |
| 264 void TargetMIPS32::lowerArguments() { | 270 void TargetMIPS32::lowerArguments() { |
| 265 VarList &Args = Func->getArgs(); | 271 VarList &Args = Func->getArgs(); |
| 266 if (Args.size() > 0) | 272 if (Args.size() > 0) |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 696 } break; | 702 } break; |
| 697 } | 703 } |
| 698 } | 704 } |
| 699 | 705 |
| 700 void TargetDataMIPS32::lowerConstants() { | 706 void TargetDataMIPS32::lowerConstants() { |
| 701 if (Ctx->getFlags().getDisableTranslation()) | 707 if (Ctx->getFlags().getDisableTranslation()) |
| 702 return; | 708 return; |
| 703 UnimplementedError(Ctx->getFlags()); | 709 UnimplementedError(Ctx->getFlags()); |
| 704 } | 710 } |
| 705 | 711 |
| 712 void TargetDataMIPS32::lowerJumpTables() { |
| 713 if (Ctx->getFlags().getDisableTranslation()) |
| 714 return; |
| 715 UnimplementedError(Ctx->getFlags()); |
| 716 } |
| 717 |
| 706 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx) | 718 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx) |
| 707 : TargetHeaderLowering(Ctx) {} | 719 : TargetHeaderLowering(Ctx) {} |
| 708 | 720 |
| 709 } // end of namespace Ice | 721 } // end of namespace Ice |
| OLD | NEW |