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

Side by Side Diff: src/IceInstX86BaseImpl.h

Issue 1848303003: Simplify references to command line flags. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 4 years, 8 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/IceInstX8664.cpp ('k') | src/IceMangling.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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 InstImpl<TraitsType>::InstX86Xchg::InstX86Xchg(Cfg *Func, Operand *Dest, 361 InstImpl<TraitsType>::InstX86Xchg::InstX86Xchg(Cfg *Func, Operand *Dest,
362 Variable *Source) 362 Variable *Source)
363 : InstX86Base(Func, InstX86Base::Xchg, 2, llvm::dyn_cast<Variable>(Dest)) { 363 : InstX86Base(Func, InstX86Base::Xchg, 2, llvm::dyn_cast<Variable>(Dest)) {
364 this->addSource(Dest); 364 this->addSource(Dest);
365 this->addSource(Source); 365 this->addSource(Source);
366 } 366 }
367 367
368 template <typename TraitsType> 368 template <typename TraitsType>
369 InstImpl<TraitsType>::InstX86IacaStart::InstX86IacaStart(Cfg *Func) 369 InstImpl<TraitsType>::InstX86IacaStart::InstX86IacaStart(Cfg *Func)
370 : InstX86Base(Func, InstX86Base::IacaStart, 0, nullptr) { 370 : InstX86Base(Func, InstX86Base::IacaStart, 0, nullptr) {
371 assert(Func->getContext()->getFlags().getAllowIacaMarks()); 371 assert(getFlags().getAllowIacaMarks());
372 } 372 }
373 373
374 template <typename TraitsType> 374 template <typename TraitsType>
375 InstImpl<TraitsType>::InstX86IacaEnd::InstX86IacaEnd(Cfg *Func) 375 InstImpl<TraitsType>::InstX86IacaEnd::InstX86IacaEnd(Cfg *Func)
376 : InstX86Base(Func, InstX86Base::IacaEnd, 0, nullptr) { 376 : InstX86Base(Func, InstX86Base::IacaEnd, 0, nullptr) {
377 assert(Func->getContext()->getFlags().getAllowIacaMarks()); 377 assert(getFlags().getAllowIacaMarks());
378 } 378 }
379 379
380 // ======================== Dump routines ======================== // 380 // ======================== Dump routines ======================== //
381 381
382 template <typename TraitsType> 382 template <typename TraitsType>
383 void InstImpl<TraitsType>::InstX86Base::dump(const Cfg *Func) const { 383 void InstImpl<TraitsType>::InstX86Base::dump(const Cfg *Func) const {
384 if (!BuildDefs::dump()) 384 if (!BuildDefs::dump())
385 return; 385 return;
386 Ostream &Str = Func->getContext()->getStrDump(); 386 Ostream &Str = Func->getContext()->getStrDump();
387 Str << "[" << Traits::TargetName << "] "; 387 Str << "[" << Traits::TargetName << "] ";
(...skipping 2509 matching lines...) Expand 10 before | Expand all | Expand 10 after
2897 return; 2897 return;
2898 Ostream &Str = Func->getContext()->getStrDump(); 2898 Ostream &Str = Func->getContext()->getStrDump();
2899 Str << "IACA_END"; 2899 Str << "IACA_END";
2900 } 2900 }
2901 2901
2902 } // end of namespace X86NAMESPACE 2902 } // end of namespace X86NAMESPACE
2903 2903
2904 } // end of namespace Ice 2904 } // end of namespace Ice
2905 2905
2906 #endif // SUBZERO_SRC_ICEINSTX86BASEIMPL_H 2906 #endif // SUBZERO_SRC_ICEINSTX86BASEIMPL_H
OLDNEW
« no previous file with comments | « src/IceInstX8664.cpp ('k') | src/IceMangling.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698