Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Side by Side Diff: src/IceTargetLoweringMIPS32.cpp

Issue 1257283004: Iasm and obj lowering for advanced switch lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix sandboxing and linking Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 } break; 711 } break;
706 } 712 }
707 } 713 }
708 714
709 void TargetDataMIPS32::lowerConstants() { 715 void TargetDataMIPS32::lowerConstants() {
710 if (Ctx->getFlags().getDisableTranslation()) 716 if (Ctx->getFlags().getDisableTranslation())
711 return; 717 return;
712 UnimplementedError(Ctx->getFlags()); 718 UnimplementedError(Ctx->getFlags());
713 } 719 }
714 720
721 void TargetDataMIPS32::lowerJumpTables() {
722 if (Ctx->getFlags().getDisableTranslation())
723 return;
724 UnimplementedError(Ctx->getFlags());
725 }
726
715 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx) 727 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx)
716 : TargetHeaderLowering(Ctx) {} 728 : TargetHeaderLowering(Ctx) {}
717 729
718 } // end of namespace Ice 730 } // end of namespace Ice
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698