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

Side by Side Diff: src/IceTargetLoweringX86Base.h

Issue 1364603002: Consolidate shift processing into utility function (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Added break to defaults in switches for code reviews. Created 5 years, 3 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 | « no previous file | src/IceTargetLoweringX86BaseImpl.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/IceTargetLoweringX86Base.h - x86 lowering ----*- C++ -*-===// 1 //===- subzero/src/IceTargetLoweringX86Base.h - x86 lowering ----*- 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 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 typename std::enable_if<!std::is_void<Ret>::value, Ret>::type 708 typename std::enable_if<!std::is_void<Ret>::value, Ret>::type
709 dispatchToConcrete(Ret (Machine::*Method)(Args...), Args &&... args) { 709 dispatchToConcrete(Ret (Machine::*Method)(Args...), Args &&... args) {
710 return (static_cast<Machine *>(this)->*Method)(std::forward<Args>(args)...); 710 return (static_cast<Machine *>(this)->*Method)(std::forward<Args>(args)...);
711 } 711 }
712 712
713 template <typename... Args> 713 template <typename... Args>
714 void dispatchToConcrete(void (Machine::*Method)(Args...), Args &&... args) { 714 void dispatchToConcrete(void (Machine::*Method)(Args...), Args &&... args) {
715 (static_cast<Machine *>(this)->*Method)(std::forward<Args>(args)...); 715 (static_cast<Machine *>(this)->*Method)(std::forward<Args>(args)...);
716 } 716 }
717 717
718 void lowerShift64(InstArithmetic::OpKind Op, Operand *Src0Lo, Operand *Src0Hi,
719 Operand *Src1Lo, Variable *DestLo, Variable *DestHi);
720
718 BoolFolding FoldingInfo; 721 BoolFolding FoldingInfo;
719 }; 722 };
720 } // end of namespace X86Internal 723 } // end of namespace X86Internal
721 } // end of namespace Ice 724 } // end of namespace Ice
722 725
723 #include "IceTargetLoweringX86BaseImpl.h" 726 #include "IceTargetLoweringX86BaseImpl.h"
724 727
725 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H 728 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H
OLDNEW
« no previous file with comments | « no previous file | src/IceTargetLoweringX86BaseImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698