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

Side by Side Diff: src/IceTargetLoweringX8632.cpp

Issue 1766233002: Subzero: Fix symbol name mangling. Make flags global. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 4 years, 9 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/IceTargetLoweringARM32.cpp ('k') | src/IceTargetLoweringX8664.cpp » ('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/IceTargetLoweringX8632.cpp - x86-32 lowering -----------===// 1 //===- subzero/src/IceTargetLoweringX8632.cpp - x86-32 lowering -----------===//
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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 BeforeAdd->setRelocOffset(BeforeAddReloc); 247 BeforeAdd->setRelocOffset(BeforeAddReloc);
248 248
249 auto *AfterAddReloc = RelocOffset::create(Ctx); 249 auto *AfterAddReloc = RelocOffset::create(Ctx);
250 auto *AfterAdd = InstX86Label::create(Func, this); 250 auto *AfterAdd = InstX86Label::create(Func, this);
251 AfterAdd->setRelocOffset(AfterAddReloc); 251 AfterAdd->setRelocOffset(AfterAddReloc);
252 252
253 const RelocOffsetT ImmSize = -typeWidthInBytes(IceType_i32); 253 const RelocOffsetT ImmSize = -typeWidthInBytes(IceType_i32);
254 254
255 auto *GotFromPc = llvm::cast<ConstantRelocatable>( 255 auto *GotFromPc = llvm::cast<ConstantRelocatable>(
256 Ctx->getConstantSym(ImmSize, {AfterAddReloc, BeforeAddReloc}, 256 Ctx->getConstantSym(ImmSize, {AfterAddReloc, BeforeAddReloc},
257 GlobalOffsetTable, GlobalOffsetTable, true)); 257 GlobalOffsetTable, GlobalOffsetTable));
258 258
259 // Insert a new version of InstX86GetIP. 259 // Insert a new version of InstX86GetIP.
260 Context.insert<Traits::Insts::GetIP>(CallDest); 260 Context.insert<Traits::Insts::GetIP>(CallDest);
261 261
262 Context.insert(BeforeAdd); 262 Context.insert(BeforeAdd);
263 _add(CallDest, GotFromPc); 263 _add(CallDest, GotFromPc);
264 Context.insert(AfterAdd); 264 Context.insert(AfterAdd);
265 265
266 // Spill the register to its home stack location if necessary. 266 // Spill the register to its home stack location if necessary.
267 if (Dest != CallDest) { 267 if (Dest != CallDest) {
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 #define X(tag, sizeLog2, align, elts, elty, str, rcstr) \ 477 #define X(tag, sizeLog2, align, elts, elty, str, rcstr) \
478 static_assert(_table1_##tag == _table2_##tag, \ 478 static_assert(_table1_##tag == _table2_##tag, \
479 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE"); 479 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE");
480 ICETYPE_TABLE 480 ICETYPE_TABLE
481 #undef X 481 #undef X
482 } // end of namespace dummy3 482 } // end of namespace dummy3
483 } // end of anonymous namespace 483 } // end of anonymous namespace
484 484
485 } // end of namespace X8632 485 } // end of namespace X8632
486 } // end of namespace Ice 486 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceTargetLoweringARM32.cpp ('k') | src/IceTargetLoweringX8664.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698