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

Side by Side Diff: src/IceTargetLoweringX8632.cpp

Issue 1197863003: Subzero: Reduce the amount of #ifdef'd code. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Cleanup Created 5 years, 5 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.h » ('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 //===----------------------------------------------------------------------===// 5 //===----------------------------------------------------------------------===//
6 // 6 //
7 // This file implements the TargetLoweringX8632 class, which 7 // This file implements the TargetLoweringX8632 class, which
8 // consists almost entirely of the lowering sequence for each 8 // consists almost entirely of the lowering sequence for each
9 // high-level instruction. 9 // high-level instruction.
10 // 10 //
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 static const char *AsmTag; 222 static const char *AsmTag;
223 static const char *PrintfString; 223 static const char *PrintfString;
224 }; 224 };
225 const char *PoolTypeConverter<uint8_t>::TypeName = "i8"; 225 const char *PoolTypeConverter<uint8_t>::TypeName = "i8";
226 const char *PoolTypeConverter<uint8_t>::AsmTag = ".byte"; 226 const char *PoolTypeConverter<uint8_t>::AsmTag = ".byte";
227 const char *PoolTypeConverter<uint8_t>::PrintfString = "0x%x"; 227 const char *PoolTypeConverter<uint8_t>::PrintfString = "0x%x";
228 } // end of anonymous namespace 228 } // end of anonymous namespace
229 229
230 template <typename T> 230 template <typename T>
231 void TargetDataX8632::emitConstantPool(GlobalContext *Ctx) { 231 void TargetDataX8632::emitConstantPool(GlobalContext *Ctx) {
232 if (!ALLOW_DUMP) 232 if (!BuildDefs::dump())
233 return; 233 return;
234 Ostream &Str = Ctx->getStrEmit(); 234 Ostream &Str = Ctx->getStrEmit();
235 Type Ty = T::Ty; 235 Type Ty = T::Ty;
236 SizeT Align = typeAlignInBytes(Ty); 236 SizeT Align = typeAlignInBytes(Ty);
237 ConstantList Pool = Ctx->getConstantPool(Ty); 237 ConstantList Pool = Ctx->getConstantPool(Ty);
238 238
239 Str << "\t.section\t.rodata.cst" << Align << ",\"aM\",@progbits," << Align 239 Str << "\t.section\t.rodata.cst" << Align << ",\"aM\",@progbits," << Align
240 << "\n"; 240 << "\n";
241 Str << "\t.align\t" << Align << "\n"; 241 Str << "\t.align\t" << Align << "\n";
242 for (Constant *C : Pool) { 242 for (Constant *C : Pool) {
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 // entries in case the high-level table has extra entries. 415 // entries in case the high-level table has extra entries.
416 #define X(tag, size, align, elts, elty, str) \ 416 #define X(tag, size, align, elts, elty, str) \
417 static_assert(_table1_##tag == _table2_##tag, \ 417 static_assert(_table1_##tag == _table2_##tag, \
418 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE"); 418 "Inconsistency between ICETYPEX8632_TABLE and ICETYPE_TABLE");
419 ICETYPE_TABLE 419 ICETYPE_TABLE
420 #undef X 420 #undef X
421 } // end of namespace dummy3 421 } // end of namespace dummy3
422 } // end of anonymous namespace 422 } // end of anonymous namespace
423 423
424 } // end of namespace Ice 424 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceTargetLoweringARM32.cpp ('k') | src/IceTargetLoweringX8664.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698