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

Side by Side Diff: src/IceInstX86BaseImpl.h

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/IceCfgNode.cpp ('k') | src/IceTargetLoweringARM32.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/IceInstX86BaseImpl.h - Generic X86 instructions -*- C++ -*=// 1 //===- subzero/src/IceInstX86BaseImpl.h - Generic X86 instructions -*- C++ -*=//
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 2605 matching lines...) Expand 10 before | Expand all | Expand 10 after
2616 emitIASRegOpTyGPR<Machine, false, true>(Func, SrcTy, Dest, Src, 2616 emitIASRegOpTyGPR<Machine, false, true>(Func, SrcTy, Dest, Src,
2617 this->Emitter); 2617 this->Emitter);
2618 } 2618 }
2619 2619
2620 template <class Machine> void InstX86Nop<Machine>::emit(const Cfg *Func) const { 2620 template <class Machine> void InstX86Nop<Machine>::emit(const Cfg *Func) const {
2621 if (!BuildDefs::dump()) 2621 if (!BuildDefs::dump())
2622 return; 2622 return;
2623 Ostream &Str = Func->getContext()->getStrEmit(); 2623 Ostream &Str = Func->getContext()->getStrEmit();
2624 // TODO: Emit the right code for each variant. 2624 // TODO: Emit the right code for each variant.
2625 Str << "\t" 2625 Str << "\t"
2626 "nop\t# variant = " << Variant; 2626 "nop\t/* variant = " << Variant << " */";
2627 } 2627 }
2628 2628
2629 template <class Machine> 2629 template <class Machine>
2630 void InstX86Nop<Machine>::emitIAS(const Cfg *Func) const { 2630 void InstX86Nop<Machine>::emitIAS(const Cfg *Func) const {
2631 typename InstX86Base<Machine>::Traits::Assembler *Asm = 2631 typename InstX86Base<Machine>::Traits::Assembler *Asm =
2632 Func->getAssembler<typename InstX86Base<Machine>::Traits::Assembler>(); 2632 Func->getAssembler<typename InstX86Base<Machine>::Traits::Assembler>();
2633 // TODO: Emit the right code for the variant. 2633 // TODO: Emit the right code for the variant.
2634 Asm->nop(); 2634 Asm->nop();
2635 } 2635 }
2636 2636
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
3311 return; 3311 return;
3312 Ostream &Str = Func->getContext()->getStrDump(); 3312 Ostream &Str = Func->getContext()->getStrDump();
3313 Str << "IACA_END"; 3313 Str << "IACA_END";
3314 } 3314 }
3315 3315
3316 } // end of namespace X86Internal 3316 } // end of namespace X86Internal
3317 3317
3318 } // end of namespace Ice 3318 } // end of namespace Ice
3319 3319
3320 #endif // SUBZERO_SRC_ICEINSTX86BASEIMPL_H 3320 #endif // SUBZERO_SRC_ICEINSTX86BASEIMPL_H
OLDNEW
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceTargetLoweringARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698