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

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: Capitalization and default case from code review 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') | src/IceTargetLoweringX86BaseImpl.h » ('J')
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 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 typename std::enable_if<!std::is_void<Ret>::value, Ret>::type 706 typename std::enable_if<!std::is_void<Ret>::value, Ret>::type
707 dispatchToConcrete(Ret (Machine::*Method)(Args...), Args &&... args) { 707 dispatchToConcrete(Ret (Machine::*Method)(Args...), Args &&... args) {
708 return (static_cast<Machine *>(this)->*Method)(std::forward<Args>(args)...); 708 return (static_cast<Machine *>(this)->*Method)(std::forward<Args>(args)...);
709 } 709 }
710 710
711 template <typename... Args> 711 template <typename... Args>
712 void dispatchToConcrete(void (Machine::*Method)(Args...), Args &&... args) { 712 void dispatchToConcrete(void (Machine::*Method)(Args...), Args &&... args) {
713 (static_cast<Machine *>(this)->*Method)(std::forward<Args>(args)...); 713 (static_cast<Machine *>(this)->*Method)(std::forward<Args>(args)...);
714 } 714 }
715 715
716 void lowerShift64(InstArithmetic::OpKind Op, Operand *Src0Lo, Operand *Src0Hi,
717 Operand *Src1Lo, Variable *DestLo, Variable *DestHi);
718
716 BoolFolding FoldingInfo; 719 BoolFolding FoldingInfo;
717 }; 720 };
718 } // end of namespace X86Internal 721 } // end of namespace X86Internal
719 } // end of namespace Ice 722 } // end of namespace Ice
720 723
721 #include "IceTargetLoweringX86BaseImpl.h" 724 #include "IceTargetLoweringX86BaseImpl.h"
722 725
723 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H 726 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H
OLDNEW
« no previous file with comments | « no previous file | src/IceTargetLoweringX86BaseImpl.h » ('j') | src/IceTargetLoweringX86BaseImpl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698