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

Side by Side Diff: src/IceInstX86BaseImpl.h

Issue 1351133003: Optimize 64-bit shifts by constants for x86-32 (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 template <class Machine> 67 template <class Machine>
68 InstX86Mul<Machine>::InstX86Mul(Cfg *Func, Variable *Dest, Variable *Source1, 68 InstX86Mul<Machine>::InstX86Mul(Cfg *Func, Variable *Dest, Variable *Source1,
69 Operand *Source2) 69 Operand *Source2)
70 : InstX86Base<Machine>(Func, InstX86Base<Machine>::Mul, 2, Dest) { 70 : InstX86Base<Machine>(Func, InstX86Base<Machine>::Mul, 2, Dest) {
71 this->addSource(Source1); 71 this->addSource(Source1);
72 this->addSource(Source2); 72 this->addSource(Source2);
73 } 73 }
74 74
75 template <class Machine> 75 template <class Machine>
76 InstX86Shld<Machine>::InstX86Shld(Cfg *Func, Variable *Dest, Variable *Source1, 76 InstX86Shld<Machine>::InstX86Shld(Cfg *Func, Variable *Dest, Variable *Source1,
77 Variable *Source2) 77 Operand *Source2)
78 : InstX86Base<Machine>(Func, InstX86Base<Machine>::Shld, 3, Dest) { 78 : InstX86Base<Machine>(Func, InstX86Base<Machine>::Shld, 3, Dest) {
79 this->addSource(Dest); 79 this->addSource(Dest);
80 this->addSource(Source1); 80 this->addSource(Source1);
81 this->addSource(Source2); 81 this->addSource(Source2);
82 } 82 }
83 83
84 template <class Machine> 84 template <class Machine>
85 InstX86Shrd<Machine>::InstX86Shrd(Cfg *Func, Variable *Dest, Variable *Source1, 85 InstX86Shrd<Machine>::InstX86Shrd(Cfg *Func, Variable *Dest, Variable *Source1,
86 Variable *Source2) 86 Operand *Source2)
87 : InstX86Base<Machine>(Func, InstX86Base<Machine>::Shrd, 3, Dest) { 87 : InstX86Base<Machine>(Func, InstX86Base<Machine>::Shrd, 3, Dest) {
88 this->addSource(Dest); 88 this->addSource(Dest);
89 this->addSource(Source1); 89 this->addSource(Source1);
90 this->addSource(Source2); 90 this->addSource(Source2);
91 } 91 }
92 92
93 template <class Machine> 93 template <class Machine>
94 InstX86Label<Machine>::InstX86Label( 94 InstX86Label<Machine>::InstX86Label(
95 Cfg *Func, typename InstX86Base<Machine>::Traits::TargetLowering *Target) 95 Cfg *Func, typename InstX86Base<Machine>::Traits::TargetLowering *Target)
96 : InstX86Base<Machine>(Func, InstX86Base<Machine>::Label, 0, nullptr), 96 : InstX86Base<Machine>(Func, InstX86Base<Machine>::Label, 0, nullptr),
(...skipping 3176 matching lines...) Expand 10 before | Expand all | Expand 10 after
3273 return; 3273 return;
3274 Ostream &Str = Func->getContext()->getStrDump(); 3274 Ostream &Str = Func->getContext()->getStrDump();
3275 Str << "IACA_END"; 3275 Str << "IACA_END";
3276 } 3276 }
3277 3277
3278 } // end of namespace X86Internal 3278 } // end of namespace X86Internal
3279 3279
3280 } // end of namespace Ice 3280 } // end of namespace Ice
3281 3281
3282 #endif // SUBZERO_SRC_ICEINSTX86BASEIMPL_H 3282 #endif // SUBZERO_SRC_ICEINSTX86BASEIMPL_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698