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

Side by Side Diff: src/IceTargetLoweringMIPS32.cpp

Issue 1202253002: Includes module header first. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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
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
11 // entirely of the lowering sequence for each high-level instruction. 11 // entirely of the lowering sequence for each high-level instruction.
12 // 12 //
13 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===//
14 14
15 #include "IceTargetLoweringMIPS32.h"
16
15 #include "llvm/Support/MathExtras.h" 17 #include "llvm/Support/MathExtras.h"
16 18
17 #include "IceCfg.h" 19 #include "IceCfg.h"
18 #include "IceCfgNode.h" 20 #include "IceCfgNode.h"
19 #include "IceClFlags.h" 21 #include "IceClFlags.h"
20 #include "IceDefs.h" 22 #include "IceDefs.h"
21 #include "IceELFObjectWriter.h" 23 #include "IceELFObjectWriter.h"
22 #include "IceGlobalInits.h" 24 #include "IceGlobalInits.h"
23 #include "IceInstMIPS32.h" 25 #include "IceInstMIPS32.h"
24 #include "IceLiveness.h" 26 #include "IceLiveness.h"
25 #include "IceOperand.h" 27 #include "IceOperand.h"
26 #include "IceRegistersMIPS32.h" 28 #include "IceRegistersMIPS32.h"
27 #include "IceTargetLoweringMIPS32.def" 29 #include "IceTargetLoweringMIPS32.def"
28 #include "IceTargetLoweringMIPS32.h"
29 #include "IceUtils.h" 30 #include "IceUtils.h"
30 31
31 namespace Ice { 32 namespace Ice {
32 33
33 TargetMIPS32::TargetMIPS32(Cfg *Func) : TargetLowering(Func) { 34 TargetMIPS32::TargetMIPS32(Cfg *Func) : TargetLowering(Func) {
34 // TODO: Don't initialize IntegerRegisters and friends every time. 35 // TODO: Don't initialize IntegerRegisters and friends every time.
35 // Instead, initialize in some sort of static initializer for the 36 // Instead, initialize in some sort of static initializer for the
36 // class. 37 // class.
37 llvm::SmallBitVector IntegerRegisters(RegMIPS32::Reg_NUM); 38 llvm::SmallBitVector IntegerRegisters(RegMIPS32::Reg_NUM);
38 llvm::SmallBitVector FloatRegisters(RegMIPS32::Reg_NUM); 39 llvm::SmallBitVector FloatRegisters(RegMIPS32::Reg_NUM);
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 void TargetDataMIPS32::lowerConstants() { 694 void TargetDataMIPS32::lowerConstants() {
694 if (Ctx->getFlags().getDisableTranslation()) 695 if (Ctx->getFlags().getDisableTranslation())
695 return; 696 return;
696 llvm::report_fatal_error("Not yet implemented"); 697 llvm::report_fatal_error("Not yet implemented");
697 } 698 }
698 699
699 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx) 700 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx)
700 : TargetHeaderLowering(Ctx) {} 701 : TargetHeaderLowering(Ctx) {}
701 702
702 } // end of namespace Ice 703 } // end of namespace Ice
OLDNEW
« src/IceConverter.cpp ('K') | « src/IceTargetLoweringARM32.cpp ('k') | src/IceThreading.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698