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

Side by Side Diff: src/IceTargetLoweringMIPS32.cpp

Issue 1221643012: Subzero: Add -Wshadow to the build. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Change the previous underscore naming style Created 5 years, 5 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" 15 #include "IceTargetLoweringMIPS32.h"
16 16
17 #include "IceCfg.h" 17 #include "IceCfg.h"
18 #include "IceCfgNode.h" 18 #include "IceCfgNode.h"
19 #include "IceClFlags.h" 19 #include "IceClFlags.h"
20 #include "IceDefs.h" 20 #include "IceDefs.h"
21 #include "IceELFObjectWriter.h" 21 #include "IceELFObjectWriter.h"
22 #include "IceGlobalInits.h" 22 #include "IceGlobalInits.h"
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 "IceUtils.h" 28 #include "IceUtils.h"
29
30 #pragma clang diagnostic push
31 #pragma clang diagnostic ignored "-Wunused-parameter"
32 #pragma clang diagnostic ignored "-Wshadow"
29 #include "llvm/Support/MathExtras.h" 33 #include "llvm/Support/MathExtras.h"
34 #pragma clang diagnostic pop
30 35
31 namespace Ice { 36 namespace Ice {
32 37
33 TargetMIPS32::TargetMIPS32(Cfg *Func) : TargetLowering(Func) { 38 TargetMIPS32::TargetMIPS32(Cfg *Func) : TargetLowering(Func) {
34 // TODO: Don't initialize IntegerRegisters and friends every time. 39 // TODO: Don't initialize IntegerRegisters and friends every time.
35 // Instead, initialize in some sort of static initializer for the 40 // Instead, initialize in some sort of static initializer for the
36 // class. 41 // class.
37 llvm::SmallBitVector IntegerRegisters(RegMIPS32::Reg_NUM); 42 llvm::SmallBitVector IntegerRegisters(RegMIPS32::Reg_NUM);
38 llvm::SmallBitVector FloatRegisters(RegMIPS32::Reg_NUM); 43 llvm::SmallBitVector FloatRegisters(RegMIPS32::Reg_NUM);
39 llvm::SmallBitVector VectorRegisters(RegMIPS32::Reg_NUM); 44 llvm::SmallBitVector VectorRegisters(RegMIPS32::Reg_NUM);
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 void TargetDataMIPS32::lowerConstants() { 698 void TargetDataMIPS32::lowerConstants() {
694 if (Ctx->getFlags().getDisableTranslation()) 699 if (Ctx->getFlags().getDisableTranslation())
695 return; 700 return;
696 llvm::report_fatal_error("Not yet implemented"); 701 llvm::report_fatal_error("Not yet implemented");
697 } 702 }
698 703
699 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx) 704 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx)
700 : TargetHeaderLowering(Ctx) {} 705 : TargetHeaderLowering(Ctx) {}
701 706
702 } // end of namespace Ice 707 } // end of namespace Ice
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698