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

Side by Side Diff: src/IceTargetLoweringX8632.cpp

Issue 952993006: Omit textual emitConstPool in MINIMAL build. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: line wrap Created 5 years, 10 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 | « pydir/run-llvm2ice.py ('k') | tests_lit/llvm2ice_tests/arith-opt.ll » ('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 // This file implements the TargetLoweringX8632 class, which 10 // This file implements the TargetLoweringX8632 class, which
(...skipping 4705 matching lines...) Expand 10 before | Expand all | Expand 10 after
4716 static const char *TypeName; 4716 static const char *TypeName;
4717 static const char *AsmTag; 4717 static const char *AsmTag;
4718 static const char *PrintfString; 4718 static const char *PrintfString;
4719 }; 4719 };
4720 const char *PoolTypeConverter<double>::TypeName = "double"; 4720 const char *PoolTypeConverter<double>::TypeName = "double";
4721 const char *PoolTypeConverter<double>::AsmTag = ".quad"; 4721 const char *PoolTypeConverter<double>::AsmTag = ".quad";
4722 const char *PoolTypeConverter<double>::PrintfString = "0x%llx"; 4722 const char *PoolTypeConverter<double>::PrintfString = "0x%llx";
4723 4723
4724 template <typename T> 4724 template <typename T>
4725 void TargetDataX8632::emitConstantPool(GlobalContext *Ctx) { 4725 void TargetDataX8632::emitConstantPool(GlobalContext *Ctx) {
4726 // Note: Still used by emit IAS. 4726 if (!ALLOW_DUMP)
4727 return;
4727 Ostream &Str = Ctx->getStrEmit(); 4728 Ostream &Str = Ctx->getStrEmit();
4728 Type Ty = T::Ty; 4729 Type Ty = T::Ty;
4729 SizeT Align = typeAlignInBytes(Ty); 4730 SizeT Align = typeAlignInBytes(Ty);
4730 ConstantList Pool = Ctx->getConstantPool(Ty); 4731 ConstantList Pool = Ctx->getConstantPool(Ty);
4731 4732
4732 Str << "\t.section\t.rodata.cst" << Align << ",\"aM\",@progbits," << Align 4733 Str << "\t.section\t.rodata.cst" << Align << ",\"aM\",@progbits," << Align
4733 << "\n"; 4734 << "\n";
4734 Str << "\t.align\t" << Align << "\n"; 4735 Str << "\t.align\t" << Align << "\n";
4735 for (Constant *C : Pool) { 4736 for (Constant *C : Pool) {
4736 typename T::IceType *Const = llvm::cast<typename T::IceType>(C); 4737 typename T::IceType *Const = llvm::cast<typename T::IceType>(C);
(...skipping 28 matching lines...) Expand all
4765 case FT_Asm: 4766 case FT_Asm:
4766 case FT_Iasm: { 4767 case FT_Iasm: {
4767 OstreamLocker L(Ctx); 4768 OstreamLocker L(Ctx);
4768 emitConstantPool<PoolTypeConverter<float>>(Ctx); 4769 emitConstantPool<PoolTypeConverter<float>>(Ctx);
4769 emitConstantPool<PoolTypeConverter<double>>(Ctx); 4770 emitConstantPool<PoolTypeConverter<double>>(Ctx);
4770 } break; 4771 } break;
4771 } 4772 }
4772 } 4773 }
4773 4774
4774 } // end of namespace Ice 4775 } // end of namespace Ice
OLDNEW
« no previous file with comments | « pydir/run-llvm2ice.py ('k') | tests_lit/llvm2ice_tests/arith-opt.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698