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

Side by Side Diff: src/IceCfgNode.cpp

Issue 876083007: Subzero: Emit functions and global initializers in a separate thread. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: More code review changes Created 5 years, 10 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/IceCfg.cpp ('k') | src/IceConverter.h » ('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/IceCfgNode.cpp - Basic block (node) implementation -----===// 1 //===- subzero/src/IceCfgNode.cpp - Basic block (node) 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 CfgNode class, including the complexities 10 // This file implements the CfgNode class, including the complexities
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 emitLiveRangesEnded(Str, Func, &I, LiveRegCount); 885 emitLiveRangesEnded(Str, Func, &I, LiveRegCount);
886 Str << "\n"; 886 Str << "\n";
887 updateStats(Func, &I); 887 updateStats(Func, &I);
888 } 888 }
889 if (DecorateAsm) 889 if (DecorateAsm)
890 emitRegisterUsage(Str, Func, this, false, LiveRegCount); 890 emitRegisterUsage(Str, Func, this, false, LiveRegCount);
891 } 891 }
892 892
893 void CfgNode::emitIAS(Cfg *Func) const { 893 void CfgNode::emitIAS(Cfg *Func) const {
894 Func->setCurrentNode(this); 894 Func->setCurrentNode(this);
895 Assembler *Asm = Func->getAssembler<Assembler>(); 895 Assembler *Asm = Func->getAssembler<>();
896 Asm->BindCfgNodeLabel(getIndex()); 896 Asm->BindCfgNodeLabel(getIndex());
897 for (const Inst &I : Phis) { 897 for (const Inst &I : Phis) {
898 if (I.isDeleted()) 898 if (I.isDeleted())
899 continue; 899 continue;
900 // Emitting a Phi instruction should cause an error. 900 // Emitting a Phi instruction should cause an error.
901 I.emitIAS(Func); 901 I.emitIAS(Func);
902 } 902 }
903 for (const Inst &I : Insts) { 903 for (const Inst &I : Insts) {
904 if (I.isDeleted()) 904 if (I.isDeleted())
905 continue; 905 continue;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 if (!First) 984 if (!First)
985 Str << ", "; 985 Str << ", ";
986 First = false; 986 First = false;
987 Str << "%" << I->getName(); 987 Str << "%" << I->getName();
988 } 988 }
989 Str << "\n"; 989 Str << "\n";
990 } 990 }
991 } 991 }
992 992
993 } // end of namespace Ice 993 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceConverter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698