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