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

Side by Side Diff: src/IceTargetLoweringMIPS32.cpp

Issue 1397933002: Start incorporating the ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nit and add URL. Created 5 years, 2 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/IceTargetLoweringARM32.cpp ('k') | tests_lit/assembler/arm32/ret.ll » ('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 13 matching lines...) Expand all
24 #include "IceInstMIPS32.h" 24 #include "IceInstMIPS32.h"
25 #include "IceLiveness.h" 25 #include "IceLiveness.h"
26 #include "IceOperand.h" 26 #include "IceOperand.h"
27 #include "IceRegistersMIPS32.h" 27 #include "IceRegistersMIPS32.h"
28 #include "IceTargetLoweringMIPS32.def" 28 #include "IceTargetLoweringMIPS32.def"
29 #include "IceUtils.h" 29 #include "IceUtils.h"
30 #include "llvm/Support/MathExtras.h" 30 #include "llvm/Support/MathExtras.h"
31 31
32 namespace Ice { 32 namespace Ice {
33 33
34 namespace {
35 void UnimplementedError(const ClFlags &Flags) {
36 if (!Flags.getSkipUnimplemented()) {
37 // Use llvm_unreachable instead of report_fatal_error, which gives better
38 // stack traces.
39 llvm_unreachable("Not yet implemented");
40 abort();
41 }
42 }
43 } // end of anonymous namespace
44
45 TargetMIPS32::TargetMIPS32(Cfg *Func) : TargetLowering(Func) { 34 TargetMIPS32::TargetMIPS32(Cfg *Func) : TargetLowering(Func) {
46 // TODO: Don't initialize IntegerRegisters and friends every time. Instead, 35 // TODO: Don't initialize IntegerRegisters and friends every time. Instead,
47 // initialize in some sort of static initializer for the class. 36 // initialize in some sort of static initializer for the class.
48 llvm::SmallBitVector IntegerRegisters(RegMIPS32::Reg_NUM); 37 llvm::SmallBitVector IntegerRegisters(RegMIPS32::Reg_NUM);
49 llvm::SmallBitVector FloatRegisters(RegMIPS32::Reg_NUM); 38 llvm::SmallBitVector FloatRegisters(RegMIPS32::Reg_NUM);
50 llvm::SmallBitVector VectorRegisters(RegMIPS32::Reg_NUM); 39 llvm::SmallBitVector VectorRegisters(RegMIPS32::Reg_NUM);
51 llvm::SmallBitVector InvalidRegisters(RegMIPS32::Reg_NUM); 40 llvm::SmallBitVector InvalidRegisters(RegMIPS32::Reg_NUM);
52 ScratchRegs.resize(RegMIPS32::Reg_NUM); 41 ScratchRegs.resize(RegMIPS32::Reg_NUM);
53 #define X(val, encode, name, scratch, preserved, stackptr, frameptr, isInt, \ 42 #define X(val, encode, name, scratch, preserved, stackptr, frameptr, isInt, \
54 isFP) \ 43 isFP) \
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 void TargetDataMIPS32::lowerJumpTables() { 702 void TargetDataMIPS32::lowerJumpTables() {
714 if (Ctx->getFlags().getDisableTranslation()) 703 if (Ctx->getFlags().getDisableTranslation())
715 return; 704 return;
716 UnimplementedError(Ctx->getFlags()); 705 UnimplementedError(Ctx->getFlags());
717 } 706 }
718 707
719 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx) 708 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx)
720 : TargetHeaderLowering(Ctx) {} 709 : TargetHeaderLowering(Ctx) {}
721 710
722 } // end of namespace Ice 711 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceTargetLoweringARM32.cpp ('k') | tests_lit/assembler/arm32/ret.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698