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

Side by Side Diff: src/IceTargetLoweringMIPS32.cpp

Issue 1551633002: Subzero. Refactoring. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addresses comments. Created 4 years, 11 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 12 matching lines...) Expand all
23 #include "IceGlobalInits.h" 23 #include "IceGlobalInits.h"
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 "IcePhiLoweringImpl.h" 27 #include "IcePhiLoweringImpl.h"
28 #include "IceRegistersMIPS32.h" 28 #include "IceRegistersMIPS32.h"
29 #include "IceTargetLoweringMIPS32.def" 29 #include "IceTargetLoweringMIPS32.def"
30 #include "IceUtils.h" 30 #include "IceUtils.h"
31 #include "llvm/Support/MathExtras.h" 31 #include "llvm/Support/MathExtras.h"
32 32
33 namespace MIPS32 {
34 std::unique_ptr<::Ice::TargetLowering> createTargetLowering(::Ice::Cfg *Func) {
35 return ::Ice::TargetMIPS32::create(Func);
36 }
37
38 std::unique_ptr<::Ice::TargetDataLowering>
39 createTargetDataLowering(::Ice::GlobalContext *Ctx) {
40 return ::Ice::TargetDataMIPS32::create(Ctx);
41 }
42
43 std::unique_ptr<::Ice::TargetHeaderLowering>
44 createTargetHeaderLowering(::Ice::GlobalContext *Ctx) {
45 return ::Ice::TargetHeaderMIPS32::create(Ctx);
46 }
47
48 void staticInit() { ::Ice::TargetMIPS32::staticInit(); }
49 } // end of namespace MIPS32
50
33 namespace Ice { 51 namespace Ice {
34 52
35 using llvm::isInt; 53 using llvm::isInt;
36 54
37 namespace { 55 namespace {
38 56
39 // The maximum number of arguments to pass in GPR registers. 57 // The maximum number of arguments to pass in GPR registers.
40 constexpr uint32_t MIPS32_MAX_GPR_ARG = 4; 58 constexpr uint32_t MIPS32_MAX_GPR_ARG = 4;
41 59
42 } // end of anonymous namespace 60 } // end of anonymous namespace
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 << "nomicromips\n"; 1094 << "nomicromips\n";
1077 Str << "\t.set\t" 1095 Str << "\t.set\t"
1078 << "nomips16\n"; 1096 << "nomips16\n";
1079 } 1097 }
1080 1098
1081 llvm::SmallBitVector TargetMIPS32::TypeToRegisterSet[IceType_NUM]; 1099 llvm::SmallBitVector TargetMIPS32::TypeToRegisterSet[IceType_NUM];
1082 llvm::SmallBitVector TargetMIPS32::RegisterAliases[RegMIPS32::Reg_NUM]; 1100 llvm::SmallBitVector TargetMIPS32::RegisterAliases[RegMIPS32::Reg_NUM];
1083 llvm::SmallBitVector TargetMIPS32::ScratchRegs; 1101 llvm::SmallBitVector TargetMIPS32::ScratchRegs;
1084 1102
1085 } // end of namespace Ice 1103 } // 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