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

Side by Side Diff: src/IceConverter.cpp

Issue 1575873006: Subzero: Fix g++ warnings. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes 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
OLDNEW
1 //===- subzero/src/IceConverter.cpp - Converts LLVM to Ice ---------------===// 1 //===- subzero/src/IceConverter.cpp - Converts LLVM to Ice ---------------===//
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
11 /// \brief Implements the LLVM to ICE converter. 11 /// \brief Implements the LLVM to ICE converter.
12 /// 12 ///
13 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===//
14 14
15 #include "IceConverter.h" 15 #include "IceConverter.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 "IceGlobalContext.h" 21 #include "IceGlobalContext.h"
22 #include "IceGlobalInits.h" 22 #include "IceGlobalInits.h"
23 #include "IceInst.h" 23 #include "IceInst.h"
24 #include "IceOperand.h" 24 #include "IceOperand.h"
25 #include "IceTargetLowering.h" 25 #include "IceTargetLowering.h"
26 #include "IceTypes.h" 26 #include "IceTypes.h"
27 #include "IceTypeConverter.h" 27 #include "IceTypeConverter.h"
28 28
29 #ifdef __clang__
29 #pragma clang diagnostic push 30 #pragma clang diagnostic push
30 #pragma clang diagnostic ignored "-Wunused-parameter" 31 #pragma clang diagnostic ignored "-Wunused-parameter"
32 #endif // __clang__
33
31 #include "llvm/IR/Constant.h" 34 #include "llvm/IR/Constant.h"
32 #include "llvm/IR/Constants.h" 35 #include "llvm/IR/Constants.h"
33 #include "llvm/IR/DataLayout.h" 36 #include "llvm/IR/DataLayout.h"
34 #include "llvm/IR/Instruction.h" 37 #include "llvm/IR/Instruction.h"
35 #include "llvm/IR/Instructions.h" 38 #include "llvm/IR/Instructions.h"
36 #include "llvm/IR/LLVMContext.h" 39 #include "llvm/IR/LLVMContext.h"
37 #include "llvm/IR/Module.h" 40 #include "llvm/IR/Module.h"
41
42 #ifdef __clang__
38 #pragma clang diagnostic pop 43 #pragma clang diagnostic pop
44 #endif // __clang__
39 45
40 // TODO(kschimpf): Remove two namespaces being visible at once. 46 // TODO(kschimpf): Remove two namespaces being visible at once.
41 using namespace llvm; 47 using namespace llvm;
42 48
43 namespace { 49 namespace {
44 50
45 // Debugging helper 51 // Debugging helper
46 template <typename T> static std::string LLVMObjectAsString(const T *O) { 52 template <typename T> static std::string LLVMObjectAsString(const T *O) {
47 std::string Dump; 53 std::string Dump;
48 raw_string_ostream Stream(Dump); 54 raw_string_ostream Stream(Dump);
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 Ctx->pushTimer(TimerID, StackID); 922 Ctx->pushTimer(TimerID, StackID);
917 } 923 }
918 LLVM2ICEFunctionConverter FunctionConverter(*this); 924 LLVM2ICEFunctionConverter FunctionConverter(*this);
919 FunctionConverter.convertFunction(&I); 925 FunctionConverter.convertFunction(&I);
920 if (TimeThisFunction) 926 if (TimeThisFunction)
921 Ctx->popTimer(TimerID, StackID); 927 Ctx->popTimer(TimerID, StackID);
922 } 928 }
923 } 929 }
924 930
925 } // end of namespace Ice 931 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceCompiler.cpp ('k') | src/IceGlobalContext.cpp » ('j') | src/IceUtils.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698