OLD | NEW |
1 //===- subzero/src/IceTargetLoweringX86BaseImpl.h - x86 lowering -*- C++ -*-==// | 1 //===- subzero/src/IceTargetLoweringX86BaseImpl.h - x86 lowering -*- C++ -*-==// |
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 /// \file | 10 /// \file |
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1302 InstList::reverse_iterator RI, E; | 1302 InstList::reverse_iterator RI, E; |
1303 for (RI = Insts.rbegin(), E = Insts.rend(); RI != E; ++RI) { | 1303 for (RI = Insts.rbegin(), E = Insts.rend(); RI != E; ++RI) { |
1304 if (llvm::isa<typename Traits::Insts::Ret>(*RI)) | 1304 if (llvm::isa<typename Traits::Insts::Ret>(*RI)) |
1305 break; | 1305 break; |
1306 } | 1306 } |
1307 if (RI == E) | 1307 if (RI == E) |
1308 return; | 1308 return; |
1309 | 1309 |
1310 // Convert the reverse_iterator position into its corresponding (forward) | 1310 // Convert the reverse_iterator position into its corresponding (forward) |
1311 // iterator position. | 1311 // iterator position. |
1312 InstList::iterator InsertPoint = RI.base(); | 1312 InstList::iterator InsertPoint = reverseToForwardIterator(RI); |
1313 --InsertPoint; | 1313 --InsertPoint; |
1314 Context.init(Node); | 1314 Context.init(Node); |
1315 Context.setInsertPoint(InsertPoint); | 1315 Context.setInsertPoint(InsertPoint); |
1316 | 1316 |
1317 if (IsEbpBasedFrame) { | 1317 if (IsEbpBasedFrame) { |
1318 _unlink_bp(); | 1318 _unlink_bp(); |
1319 } else { | 1319 } else { |
1320 // add stackptr, SpillAreaSizeBytes | 1320 // add stackptr, SpillAreaSizeBytes |
1321 if (SpillAreaSizeBytes != 0) { | 1321 if (SpillAreaSizeBytes != 0) { |
1322 _add_sp(Ctx->getConstantInt32(SpillAreaSizeBytes)); | 1322 _add_sp(Ctx->getConstantInt32(SpillAreaSizeBytes)); |
(...skipping 6767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8090 emitGlobal(*Var, SectionSuffix); | 8090 emitGlobal(*Var, SectionSuffix); |
8091 } | 8091 } |
8092 } | 8092 } |
8093 } break; | 8093 } break; |
8094 } | 8094 } |
8095 } | 8095 } |
8096 } // end of namespace X86NAMESPACE | 8096 } // end of namespace X86NAMESPACE |
8097 } // end of namespace Ice | 8097 } // end of namespace Ice |
8098 | 8098 |
8099 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASEIMPL_H | 8099 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASEIMPL_H |
OLD | NEW |