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

Side by Side Diff: src/IceInst.cpp

Issue 1161543005: Subzero: Changes needed for LLVM 3.7 integration. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 6 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 | « Makefile.standalone ('k') | tests_lit/assembler/x86/opcode_register_encodings.ll » ('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/IceInst.cpp - High-level instruction implementation ----===// 1 //===- subzero/src/IceInst.cpp - High-level instruction implementation ----===//
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 implements the Inst class, primarily the various 10 // This file implements the Inst class, primarily the various
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 << getSrc(0)->getType() << " "; 692 << getSrc(0)->getType() << " ";
693 dumpSources(Func); 693 dumpSources(Func);
694 } 694 }
695 695
696 void InstLoad::dump(const Cfg *Func) const { 696 void InstLoad::dump(const Cfg *Func) const {
697 if (!ALLOW_DUMP) 697 if (!ALLOW_DUMP)
698 return; 698 return;
699 Ostream &Str = Func->getContext()->getStrDump(); 699 Ostream &Str = Func->getContext()->getStrDump();
700 dumpDest(Func); 700 dumpDest(Func);
701 Type Ty = getDest()->getType(); 701 Type Ty = getDest()->getType();
702 Str << " = load " << Ty << "* "; 702 Str << " = load " << Ty << ", " << Ty << "* ";
703 dumpSources(Func); 703 dumpSources(Func);
704 Str << ", align " << typeAlignInBytes(Ty); 704 Str << ", align " << typeAlignInBytes(Ty);
705 } 705 }
706 706
707 void InstStore::dump(const Cfg *Func) const { 707 void InstStore::dump(const Cfg *Func) const {
708 if (!ALLOW_DUMP) 708 if (!ALLOW_DUMP)
709 return; 709 return;
710 Ostream &Str = Func->getContext()->getStrDump(); 710 Ostream &Str = Func->getContext()->getStrDump();
711 Type Ty = getData()->getType(); 711 Type Ty = getData()->getType();
712 Str << "store " << Ty << " "; 712 Str << "store " << Ty << " ";
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 // preserve these. 883 // preserve these.
884 return true; 884 return true;
885 } 885 }
886 if (!Dest->hasReg() && !SrcVar->hasReg() && 886 if (!Dest->hasReg() && !SrcVar->hasReg() &&
887 Dest->getStackOffset() == SrcVar->getStackOffset()) 887 Dest->getStackOffset() == SrcVar->getStackOffset())
888 return true; 888 return true;
889 return false; 889 return false;
890 } 890 }
891 891
892 } // end of namespace Ice 892 } // end of namespace Ice
OLDNEW
« no previous file with comments | « Makefile.standalone ('k') | tests_lit/assembler/x86/opcode_register_encodings.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698