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

Side by Side Diff: src/IceTargetLoweringX86Base.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: Code review updates Created 5 years, 2 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/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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 } 561 }
562 void _sbb_rmw(typename Traits::X86OperandMem *DestSrc0, Operand *Src1) { 562 void _sbb_rmw(typename Traits::X86OperandMem *DestSrc0, Operand *Src1) {
563 Context.insert(Traits::Insts::SbbRMW::create(Func, DestSrc0, Src1)); 563 Context.insert(Traits::Insts::SbbRMW::create(Func, DestSrc0, Src1));
564 } 564 }
565 void _setcc(Variable *Dest, typename Traits::Cond::BrCond Condition) { 565 void _setcc(Variable *Dest, typename Traits::Cond::BrCond Condition) {
566 Context.insert(Traits::Insts::Setcc::create(Func, Dest, Condition)); 566 Context.insert(Traits::Insts::Setcc::create(Func, Dest, Condition));
567 } 567 }
568 void _shl(Variable *Dest, Operand *Src0) { 568 void _shl(Variable *Dest, Operand *Src0) {
569 Context.insert(Traits::Insts::Shl::create(Func, Dest, Src0)); 569 Context.insert(Traits::Insts::Shl::create(Func, Dest, Src0));
570 } 570 }
571 void _shld(Variable *Dest, Variable *Src0, Variable *Src1) { 571 void _shld(Variable *Dest, Variable *Src0, Operand *Src1) {
572 Context.insert(Traits::Insts::Shld::create(Func, Dest, Src0, Src1)); 572 Context.insert(Traits::Insts::Shld::create(Func, Dest, Src0, Src1));
573 } 573 }
574 void _shr(Variable *Dest, Operand *Src0) { 574 void _shr(Variable *Dest, Operand *Src0) {
575 Context.insert(Traits::Insts::Shr::create(Func, Dest, Src0)); 575 Context.insert(Traits::Insts::Shr::create(Func, Dest, Src0));
576 } 576 }
577 void _shrd(Variable *Dest, Variable *Src0, Variable *Src1) { 577 void _shrd(Variable *Dest, Variable *Src0, Operand *Src1) {
578 Context.insert(Traits::Insts::Shrd::create(Func, Dest, Src0, Src1)); 578 Context.insert(Traits::Insts::Shrd::create(Func, Dest, Src0, Src1));
579 } 579 }
580 void _shufps(Variable *Dest, Operand *Src0, Operand *Src1) { 580 void _shufps(Variable *Dest, Operand *Src0, Operand *Src1) {
581 Context.insert(Traits::Insts::Shufps::create(Func, Dest, Src0, Src1)); 581 Context.insert(Traits::Insts::Shufps::create(Func, Dest, Src0, Src1));
582 } 582 }
583 void _sqrtss(Variable *Dest, Operand *Src0) { 583 void _sqrtss(Variable *Dest, Operand *Src0) {
584 Context.insert(Traits::Insts::Sqrtss::create(Func, Dest, Src0)); 584 Context.insert(Traits::Insts::Sqrtss::create(Func, Dest, Src0));
585 } 585 }
586 void _store(Operand *Value, typename Traits::X86Operand *Mem) { 586 void _store(Operand *Value, typename Traits::X86Operand *Mem) {
587 Context.insert(Traits::Insts::Store::create(Func, Value, Mem)); 587 Context.insert(Traits::Insts::Store::create(Func, Value, Mem));
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 } 714 }
715 715
716 BoolFolding FoldingInfo; 716 BoolFolding FoldingInfo;
717 }; 717 };
718 } // end of namespace X86Internal 718 } // end of namespace X86Internal
719 } // end of namespace Ice 719 } // end of namespace Ice
720 720
721 #include "IceTargetLoweringX86BaseImpl.h" 721 #include "IceTargetLoweringX86BaseImpl.h"
722 722
723 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H 723 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698