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

Side by Side Diff: src/IceTargetLoweringX86BaseImpl.h

Issue 2297363002: Subzero: Fix a build error against LLVM trunk. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 3 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/IceTargetLoweringMIPS32.cpp ('k') | no next file » | 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/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
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
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
OLDNEW
« no previous file with comments | « src/IceTargetLoweringMIPS32.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698