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

Side by Side Diff: src/IceTargetLoweringARM32.cpp

Issue 1521863002: Subzero: Fix mid-line comments when using -asm-verbose . (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix lit tests Created 5 years 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/IceInstX86BaseImpl.h ('k') | src/IceTargetLoweringX8632.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/IceTargetLoweringARM32.cpp - ARM32 lowering ------------===// 1 //===- subzero/src/IceTargetLoweringARM32.cpp - ARM32 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 6310 matching lines...) Expand 10 before | Expand all | Expand 10 after
6321 6321
6322 template <typename T> 6322 template <typename T>
6323 void emitConstant( 6323 void emitConstant(
6324 Ostream &Str, const GlobalContext *Ctx, 6324 Ostream &Str, const GlobalContext *Ctx,
6325 const typename ConstantPoolEmitterTraits<T>::ConstantType *Const) { 6325 const typename ConstantPoolEmitterTraits<T>::ConstantType *Const) {
6326 using Traits = ConstantPoolEmitterTraits<T>; 6326 using Traits = ConstantPoolEmitterTraits<T>;
6327 Const->emitPoolLabel(Str, Ctx); 6327 Const->emitPoolLabel(Str, Ctx);
6328 Str << ":\n\t" << Traits::AsmTag << "\t0x"; 6328 Str << ":\n\t" << Traits::AsmTag << "\t0x";
6329 T Value = Const->getValue(); 6329 T Value = Const->getValue();
6330 Str.write_hex(Traits::bitcastToUint64(Value)); 6330 Str.write_hex(Traits::bitcastToUint64(Value));
6331 Str << "\t@" << Traits::TypeName << " " << Value << "\n"; 6331 Str << "\t/* " << Traits::TypeName << " " << Value << " */\n";
6332 } 6332 }
6333 6333
6334 template <typename T> void emitConstantPool(GlobalContext *Ctx) { 6334 template <typename T> void emitConstantPool(GlobalContext *Ctx) {
6335 if (!BuildDefs::dump()) { 6335 if (!BuildDefs::dump()) {
6336 return; 6336 return;
6337 } 6337 }
6338 6338
6339 using Traits = ConstantPoolEmitterTraits<T>; 6339 using Traits = ConstantPoolEmitterTraits<T>;
6340 static constexpr size_t MinimumAlignment = 4; 6340 static constexpr size_t MinimumAlignment = 4;
6341 SizeT Align = std::max(MinimumAlignment, typeAlignInBytes(Traits::IceType)); 6341 SizeT Align = std::max(MinimumAlignment, typeAlignInBytes(Traits::IceType));
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
6443 // Technically R9 is used for TLS with Sandboxing, and we reserve it. 6443 // Technically R9 is used for TLS with Sandboxing, and we reserve it.
6444 // However, for compatibility with current NaCl LLVM, don't claim that. 6444 // However, for compatibility with current NaCl LLVM, don't claim that.
6445 Str << ".eabi_attribute 14, 3 @ Tag_ABI_PCS_R9_use: Not used\n"; 6445 Str << ".eabi_attribute 14, 3 @ Tag_ABI_PCS_R9_use: Not used\n";
6446 } 6446 }
6447 6447
6448 llvm::SmallBitVector TargetARM32::TypeToRegisterSet[IceType_NUM]; 6448 llvm::SmallBitVector TargetARM32::TypeToRegisterSet[IceType_NUM];
6449 llvm::SmallBitVector TargetARM32::RegisterAliases[RegARM32::Reg_NUM]; 6449 llvm::SmallBitVector TargetARM32::RegisterAliases[RegARM32::Reg_NUM];
6450 llvm::SmallBitVector TargetARM32::ScratchRegs; 6450 llvm::SmallBitVector TargetARM32::ScratchRegs;
6451 6451
6452 } // end of namespace Ice 6452 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceInstX86BaseImpl.h ('k') | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698