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

Side by Side Diff: src/IceCfg.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/IceCfg.cpp - Control flow graph implementation ---------===// 1 //===- subzero/src/IceCfg.cpp - Control flow graph 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 Cfg class, including constant pool 10 // This file implements the Cfg class, including constant pool
11 // management. 11 // management.
12 // 12 //
13 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===//
14 14
15 #include "IceCfg.h" 15 #include "IceCfg.h"
16 #include "IceCfgNode.h" 16 #include "IceCfgNode.h"
17 #include "IceClFlags.h" 17 #include "IceClFlags.h"
18 #include "IceDefs.h" 18 #include "IceDefs.h"
19 #include "IceInst.h" 19 #include "IceInst.h"
20 #include "IceLiveness.h" 20 #include "IceLiveness.h"
21 #include "IceOperand.h" 21 #include "IceOperand.h"
22 #include "IceTargetLowering.h" 22 #include "IceTargetLowering.h"
23 23
24 namespace Ice { 24 namespace Ice {
25 25
26 Cfg::Cfg(GlobalContext *Ctx) 26 Cfg::Cfg(GlobalContext *Ctx)
27 : Ctx(Ctx), FunctionName(""), ReturnType(IceType_void), 27 : Ctx(Ctx), FunctionName(""), ReturnType(IceType_void),
28 IsInternalLinkage(false), HasError(false), ErrorMessage(""), Entry(NULL), 28 IsInternalLinkage(false), HasError(false), ErrorMessage(""), Entry(NULL),
29 NextInstNumber(1), Live(NULL), 29 NextInstNumber(1), Live(nullptr),
30 Target(TargetLowering::createLowering(Ctx->getTargetArch(), this)), 30 Target(TargetLowering::createLowering(Ctx->getTargetArch(), this)),
31 VMetadata(new VariablesMetadata(this)), 31 VMetadata(new VariablesMetadata(this)),
32 TargetAssembler( 32 TargetAssembler(
33 TargetLowering::createAssembler(Ctx->getTargetArch(), this)), 33 TargetLowering::createAssembler(Ctx->getTargetArch(), this)),
34 CurrentNode(NULL) {} 34 CurrentNode(NULL) {}
35 35
36 Cfg::~Cfg() {} 36 Cfg::~Cfg() {}
37 37
38 void Cfg::setError(const IceString &Message) { 38 void Cfg::setError(const IceString &Message) {
39 HasError = true; 39 HasError = true;
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 for (NodeList::const_iterator I = Nodes.begin(), E = Nodes.end(); I != E; 415 for (NodeList::const_iterator I = Nodes.begin(), E = Nodes.end(); I != E;
416 ++I) { 416 ++I) {
417 (*I)->dump(this); 417 (*I)->dump(this);
418 } 418 }
419 if (getContext()->isVerbose(IceV_Instructions)) { 419 if (getContext()->isVerbose(IceV_Instructions)) {
420 Str << "}\n"; 420 Str << "}\n";
421 } 421 }
422 } 422 }
423 423
424 } // end of namespace Ice 424 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceCfg.h ('k') | src/IceConverter.cpp » ('j') | src/PNaClTranslator.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698