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

Side by Side Diff: src/IceTargetLoweringX8632.h

Issue 1118353005: Subzero: Use a setcc sequence for better icmp lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Cleanup Created 5 years, 7 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/IceInstX8632.cpp ('k') | src/IceTargetLoweringX8632.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/IceTargetLoweringX8632.h - x86-32 lowering ---*- C++ -*-===// 1 //===- subzero/src/IceTargetLoweringX8632.h - x86-32 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 // This file declares the TargetLoweringX8632 class, which 10 // This file declares the TargetLoweringX8632 class, which
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 } 408 }
409 void _rol(Variable *Dest, Operand *Src0) { 409 void _rol(Variable *Dest, Operand *Src0) {
410 Context.insert(InstX8632Rol::create(Func, Dest, Src0)); 410 Context.insert(InstX8632Rol::create(Func, Dest, Src0));
411 } 411 }
412 void _sar(Variable *Dest, Operand *Src0) { 412 void _sar(Variable *Dest, Operand *Src0) {
413 Context.insert(InstX8632Sar::create(Func, Dest, Src0)); 413 Context.insert(InstX8632Sar::create(Func, Dest, Src0));
414 } 414 }
415 void _sbb(Variable *Dest, Operand *Src0) { 415 void _sbb(Variable *Dest, Operand *Src0) {
416 Context.insert(InstX8632Sbb::create(Func, Dest, Src0)); 416 Context.insert(InstX8632Sbb::create(Func, Dest, Src0));
417 } 417 }
418 void _setcc(Variable *Dest, CondX86::BrCond Condition) {
419 Context.insert(InstX8632Setcc::create(Func, Dest, Condition));
420 }
418 void _shl(Variable *Dest, Operand *Src0) { 421 void _shl(Variable *Dest, Operand *Src0) {
419 Context.insert(InstX8632Shl::create(Func, Dest, Src0)); 422 Context.insert(InstX8632Shl::create(Func, Dest, Src0));
420 } 423 }
421 void _shld(Variable *Dest, Variable *Src0, Variable *Src1) { 424 void _shld(Variable *Dest, Variable *Src0, Variable *Src1) {
422 Context.insert(InstX8632Shld::create(Func, Dest, Src0, Src1)); 425 Context.insert(InstX8632Shld::create(Func, Dest, Src0, Src1));
423 } 426 }
424 void _shr(Variable *Dest, Operand *Src0) { 427 void _shr(Variable *Dest, Operand *Src0) {
425 Context.insert(InstX8632Shr::create(Func, Dest, Src0)); 428 Context.insert(InstX8632Shr::create(Func, Dest, Src0));
426 } 429 }
427 void _shrd(Variable *Dest, Variable *Src0, Variable *Src1) { 430 void _shrd(Variable *Dest, Variable *Src0, Variable *Src1) {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 }; 524 };
522 525
523 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const; 526 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const;
524 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const; 527 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const;
525 template <> void ConstantFloat::emit(GlobalContext *Ctx) const; 528 template <> void ConstantFloat::emit(GlobalContext *Ctx) const;
526 template <> void ConstantDouble::emit(GlobalContext *Ctx) const; 529 template <> void ConstantDouble::emit(GlobalContext *Ctx) const;
527 530
528 } // end of namespace Ice 531 } // end of namespace Ice
529 532
530 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H 533 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H
OLDNEW
« no previous file with comments | « src/IceInstX8632.cpp ('k') | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698