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

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: Rebase 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
« no previous file with comments | « src/IceTargetLoweringMIPS32.h ('k') | src/IceTargetLoweringX8632.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « src/IceTargetLoweringMIPS32.h ('k') | src/IceTargetLoweringX8632.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698