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

Side by Side Diff: src/IceTargetLowering.cpp

Issue 589003002: Subzero: Refactor tracking of Defs and block-local Variables. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: "Mark args as being used in the entry node" was unnecessary. 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
« no previous file with comments | « src/IceTargetLowering.h ('k') | src/IceTargetLoweringX8632.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 Begin = getNode()->getInsts().begin(); 46 Begin = getNode()->getInsts().begin();
47 Cur = Begin; 47 Cur = Begin;
48 End = getNode()->getInsts().end(); 48 End = getNode()->getInsts().end();
49 skipDeleted(Cur); 49 skipDeleted(Cur);
50 Next = Cur; 50 Next = Cur;
51 advanceForward(Next); 51 advanceForward(Next);
52 } 52 }
53 53
54 void LoweringContext::insert(Inst *Inst) { 54 void LoweringContext::insert(Inst *Inst) {
55 getNode()->getInsts().insert(Next, Inst); 55 getNode()->getInsts().insert(Next, Inst);
56 Inst->updateVars(getNode());
57 } 56 }
58 57
59 void LoweringContext::skipDeleted(InstList::iterator &I) const { 58 void LoweringContext::skipDeleted(InstList::iterator &I) const {
60 while (I != End && (*I)->isDeleted()) 59 while (I != End && (*I)->isDeleted())
61 ++I; 60 ++I;
62 } 61 }
63 62
64 void LoweringContext::advanceForward(InstList::iterator &I) const { 63 void LoweringContext::advanceForward(InstList::iterator &I) const {
65 if (I != End) { 64 if (I != End) {
66 ++I; 65 ++I;
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 if (Target == Target_ARM64) 245 if (Target == Target_ARM64)
247 return IceTargetGlobalInitARM64::create(Ctx); 246 return IceTargetGlobalInitARM64::create(Ctx);
248 #endif 247 #endif
249 llvm_unreachable("Unsupported target"); 248 llvm_unreachable("Unsupported target");
250 return NULL; 249 return NULL;
251 } 250 }
252 251
253 TargetGlobalInitLowering::~TargetGlobalInitLowering() {} 252 TargetGlobalInitLowering::~TargetGlobalInitLowering() {}
254 253
255 } // end of namespace Ice 254 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceTargetLowering.h ('k') | src/IceTargetLoweringX8632.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698