OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |