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

Side by Side Diff: src/IceTargetLoweringMIPS32.cpp

Issue 1197223002: Subzero: Use C++11 member initializers where practical. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rebase Created 5 years, 6 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 // This file implements the TargetLoweringMIPS32 class, which consists almost 10 // This file implements the TargetLoweringMIPS32 class, which consists almost
(...skipping 12 matching lines...) Expand all
23 #include "IceInstMIPS32.h" 23 #include "IceInstMIPS32.h"
24 #include "IceLiveness.h" 24 #include "IceLiveness.h"
25 #include "IceOperand.h" 25 #include "IceOperand.h"
26 #include "IceRegistersMIPS32.h" 26 #include "IceRegistersMIPS32.h"
27 #include "IceTargetLoweringMIPS32.def" 27 #include "IceTargetLoweringMIPS32.def"
28 #include "IceTargetLoweringMIPS32.h" 28 #include "IceTargetLoweringMIPS32.h"
29 #include "IceUtils.h" 29 #include "IceUtils.h"
30 30
31 namespace Ice { 31 namespace Ice {
32 32
33 TargetMIPS32::TargetMIPS32(Cfg *Func) 33 TargetMIPS32::TargetMIPS32(Cfg *Func) : TargetLowering(Func) {
34 : TargetLowering(Func), UsesFramePointer(false) {
35 // TODO: Don't initialize IntegerRegisters and friends every time. 34 // TODO: Don't initialize IntegerRegisters and friends every time.
36 // Instead, initialize in some sort of static initializer for the 35 // Instead, initialize in some sort of static initializer for the
37 // class. 36 // class.
38 llvm::SmallBitVector IntegerRegisters(RegMIPS32::Reg_NUM); 37 llvm::SmallBitVector IntegerRegisters(RegMIPS32::Reg_NUM);
39 llvm::SmallBitVector FloatRegisters(RegMIPS32::Reg_NUM); 38 llvm::SmallBitVector FloatRegisters(RegMIPS32::Reg_NUM);
40 llvm::SmallBitVector VectorRegisters(RegMIPS32::Reg_NUM); 39 llvm::SmallBitVector VectorRegisters(RegMIPS32::Reg_NUM);
41 llvm::SmallBitVector InvalidRegisters(RegMIPS32::Reg_NUM); 40 llvm::SmallBitVector InvalidRegisters(RegMIPS32::Reg_NUM);
42 ScratchRegs.resize(RegMIPS32::Reg_NUM); 41 ScratchRegs.resize(RegMIPS32::Reg_NUM);
43 #define X(val, encode, name, scratch, preserved, stackptr, frameptr, isInt, \ 42 #define X(val, encode, name, scratch, preserved, stackptr, frameptr, isInt, \
44 isFP) \ 43 isFP) \
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 void TargetDataMIPS32::lowerConstants() { 693 void TargetDataMIPS32::lowerConstants() {
695 if (Ctx->getFlags().getDisableTranslation()) 694 if (Ctx->getFlags().getDisableTranslation())
696 return; 695 return;
697 llvm::report_fatal_error("Not yet implemented"); 696 llvm::report_fatal_error("Not yet implemented");
698 } 697 }
699 698
700 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx) 699 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx)
701 : TargetHeaderLowering(Ctx) {} 700 : TargetHeaderLowering(Ctx) {}
702 701
703 } // end of namespace Ice 702 } // 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