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

Side by Side Diff: src/IceTargetLowering.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/IceTargetLowering.cpp - Basic lowering implementation --===// 1 //===- subzero/src/IceTargetLowering.cpp - Basic lowering implementation --===//
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 skeleton of the TargetLowering class, 10 // This file implements the skeleton of the TargetLowering class,
11 // specifically invoking the appropriate lowering method for a given 11 // specifically invoking the appropriate lowering method for a given
12 // instruction kind and driving global register allocation. It also 12 // instruction kind and driving global register allocation. It also
13 // implements the non-deleted instruction iteration in 13 // implements the non-deleted instruction iteration in
14 // LoweringContext. 14 // LoweringContext.
15 // 15 //
16 //===----------------------------------------------------------------------===// 16 //===----------------------------------------------------------------------===//
17 17
18 #include "llvm/Support/CommandLine.h"
19
18 #include "assembler_ia32.h" 20 #include "assembler_ia32.h"
19 #include "IceCfg.h" // setError() 21 #include "IceCfg.h" // setError()
20 #include "IceCfgNode.h" 22 #include "IceCfgNode.h"
21 #include "IceOperand.h" 23 #include "IceOperand.h"
22 #include "IceRegAlloc.h" 24 #include "IceRegAlloc.h"
23 #include "IceTargetLowering.h" 25 #include "IceTargetLowering.h"
24 #include "IceTargetLoweringX8632.h" 26 #include "IceTargetLoweringX8632.h"
25 27
26 #include "llvm/Support/CommandLine.h"
27
28 namespace Ice { 28 namespace Ice {
29 29
30 namespace { 30 namespace {
31 31
32 namespace cl = llvm::cl; 32 namespace cl = llvm::cl;
33 cl::opt<bool> DoNopInsertion("nop-insertion", cl::desc("Randomly insert NOPs"), 33 cl::opt<bool> DoNopInsertion("nop-insertion", cl::desc("Randomly insert NOPs"),
34 cl::init(false)); 34 cl::init(false));
35 35
36 cl::opt<int> MaxNopsPerInstruction( 36 cl::opt<int> MaxNopsPerInstruction(
37 "max-nops-per-instruction", 37 "max-nops-per-instruction",
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 if (Target == Target_ARM64) 257 if (Target == Target_ARM64)
258 return IceTargetGlobalInitARM64::create(Ctx); 258 return IceTargetGlobalInitARM64::create(Ctx);
259 #endif 259 #endif
260 llvm_unreachable("Unsupported target"); 260 llvm_unreachable("Unsupported target");
261 return NULL; 261 return NULL;
262 } 262 }
263 263
264 TargetGlobalInitLowering::~TargetGlobalInitLowering() {} 264 TargetGlobalInitLowering::~TargetGlobalInitLowering() {}
265 265
266 } // end of namespace Ice 266 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceTargetLowering.h ('k') | src/IceTargetLoweringX8632.h » ('j') | src/PNaClTranslator.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698