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

Side by Side Diff: src/IceCfgNode.cpp

Issue 916653004: 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: Const change 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/IceClFlags.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 875 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 emitLiveRangesEnded(Str, Func, &I, LiveRegCount); 886 emitLiveRangesEnded(Str, Func, &I, LiveRegCount);
887 Str << "\n"; 887 Str << "\n";
888 updateStats(Func, &I); 888 updateStats(Func, &I);
889 } 889 }
890 if (DecorateAsm) 890 if (DecorateAsm)
891 emitRegisterUsage(Str, Func, this, false, LiveRegCount); 891 emitRegisterUsage(Str, Func, this, false, LiveRegCount);
892 } 892 }
893 893
894 void CfgNode::emitIAS(Cfg *Func) const { 894 void CfgNode::emitIAS(Cfg *Func) const {
895 Func->setCurrentNode(this); 895 Func->setCurrentNode(this);
896 Assembler *Asm = Func->getAssembler<Assembler>(); 896 Assembler *Asm = Func->getAssembler<>();
897 Asm->BindCfgNodeLabel(getIndex()); 897 Asm->BindCfgNodeLabel(getIndex());
898 for (const Inst &I : Phis) { 898 for (const Inst &I : Phis) {
899 if (I.isDeleted()) 899 if (I.isDeleted())
900 continue; 900 continue;
901 // Emitting a Phi instruction should cause an error. 901 // Emitting a Phi instruction should cause an error.
902 I.emitIAS(Func); 902 I.emitIAS(Func);
903 } 903 }
904 for (const Inst &I : Insts) { 904 for (const Inst &I : Insts) {
905 if (I.isDeleted()) 905 if (I.isDeleted())
906 continue; 906 continue;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 if (!First) 985 if (!First)
986 Str << ", "; 986 Str << ", ";
987 First = false; 987 First = false;
988 Str << "%" << I->getName(); 988 Str << "%" << I->getName();
989 } 989 }
990 Str << "\n"; 990 Str << "\n";
991 } 991 }
992 } 992 }
993 993
994 } // end of namespace Ice 994 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceClFlags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698