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

Side by Side Diff: src/IceConverter.cpp

Issue 622443002: Subzero: Change llvm::OwningPtr to C++11's std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Remove ErrorOr for now Created 6 years, 2 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 // This file implements the LLVM to ICE converter. 10 // This file implements the LLVM to ICE converter.
11 // 11 //
12 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===//
13 13
14 #include <iostream>
15
16 #include "llvm/IR/Constant.h"
17 #include "llvm/IR/Constants.h"
18 #include "llvm/IR/DataLayout.h"
19 #include "llvm/IR/Instruction.h"
20 #include "llvm/IR/Instructions.h"
21 #include "llvm/IR/LLVMContext.h"
22 #include "llvm/IR/Module.h"
23
14 #include "IceCfg.h" 24 #include "IceCfg.h"
15 #include "IceCfgNode.h" 25 #include "IceCfgNode.h"
16 #include "IceClFlags.h" 26 #include "IceClFlags.h"
17 #include "IceConverter.h" 27 #include "IceConverter.h"
18 #include "IceDefs.h" 28 #include "IceDefs.h"
19 #include "IceGlobalContext.h" 29 #include "IceGlobalContext.h"
20 #include "IceInst.h" 30 #include "IceInst.h"
21 #include "IceOperand.h" 31 #include "IceOperand.h"
22 #include "IceTargetLowering.h" 32 #include "IceTargetLowering.h"
23 #include "IceTypes.h" 33 #include "IceTypes.h"
24 #include "IceTypeConverter.h" 34 #include "IceTypeConverter.h"
25 35
26 #include "llvm/IR/Constant.h"
27 #include "llvm/IR/Constants.h"
28 #include "llvm/IR/DataLayout.h"
29 #include "llvm/IR/Instruction.h"
30 #include "llvm/IR/Instructions.h"
31 #include "llvm/IR/LLVMContext.h"
32 #include "llvm/IR/Module.h"
33
34 #include <iostream>
35
36 using namespace llvm; 36 using namespace llvm;
37 37
38 namespace { 38 namespace {
39 39
40 // Debugging helper 40 // Debugging helper
41 template <typename T> static std::string LLVMObjectAsString(const T *O) { 41 template <typename T> static std::string LLVMObjectAsString(const T *O) {
42 std::string Dump; 42 std::string Dump;
43 raw_string_ostream Stream(Dump); 43 raw_string_ostream Stream(Dump);
44 O->print(Stream); 44 O->print(Stream);
45 return Stream.str(); 45 return Stream.str();
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 639
640 Timer TConvert; 640 Timer TConvert;
641 Cfg *Fcn = FunctionConverter.convertFunction(I); 641 Cfg *Fcn = FunctionConverter.convertFunction(I);
642 translateFcn(Fcn); 642 translateFcn(Fcn);
643 } 643 }
644 644
645 emitConstants(); 645 emitConstants();
646 } 646 }
647 647
648 } // end of namespace Ice 648 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceDefs.h » ('j') | src/PNaClTranslator.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698