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

Side by Side Diff: src/IceCfg.cpp

Issue 1439983002: Subzero: Add "--verbose=status" option. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 1 month 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.h ('k') | src/IceClFlags.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/IceCfg.cpp - Control flow graph implementation ---------===// 1 //===- subzero/src/IceCfg.cpp - Control flow graph 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 /// \file 10 /// \file
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 const IceString &Name = getFunctionName(); 174 const IceString &Name = getFunctionName();
175 if (TimingFocusOn == "*" || TimingFocusOn == Name) { 175 if (TimingFocusOn == "*" || TimingFocusOn == Name) {
176 setFocusedTiming(); 176 setFocusedTiming();
177 getContext()->resetTimer(GlobalContext::TSK_Default); 177 getContext()->resetTimer(GlobalContext::TSK_Default);
178 getContext()->setTimerName(GlobalContext::TSK_Default, Name); 178 getContext()->setTimerName(GlobalContext::TSK_Default, Name);
179 } 179 }
180 if (getContext()->getFlags().getTimeEachFunction()) 180 if (getContext()->getFlags().getTimeEachFunction())
181 FunctionTimer.reset(new TimerMarker( 181 FunctionTimer.reset(new TimerMarker(
182 getContext()->getTimerID(GlobalContext::TSK_Funcs, Name), 182 getContext()->getTimerID(GlobalContext::TSK_Funcs, Name),
183 getContext(), GlobalContext::TSK_Funcs)); 183 getContext(), GlobalContext::TSK_Funcs));
184 if (isVerbose(IceV_Status))
185 getContext()->getStrDump() << ">>>Translating " << Name << "\n";
184 } 186 }
185 TimerMarker T(TimerStack::TT_translate, this); 187 TimerMarker T(TimerStack::TT_translate, this);
186 188
187 dump("Initial CFG"); 189 dump("Initial CFG");
188 190
189 if (getContext()->getFlags().getEnableBlockProfile()) { 191 if (getContext()->getFlags().getEnableBlockProfile()) {
190 profileBlocks(); 192 profileBlocks();
191 // TODO(jpp): this is fragile, at best. Figure out a better way of 193 // TODO(jpp): this is fragile, at best. Figure out a better way of
192 // detecting exit functions. 194 // detecting exit functions.
193 if (GlobalContext::matchSymbolName(getFunctionName(), "exit")) { 195 if (GlobalContext::matchSymbolName(getFunctionName(), "exit")) {
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 } 994 }
993 } 995 }
994 // Print each basic block 996 // Print each basic block
995 for (CfgNode *Node : Nodes) 997 for (CfgNode *Node : Nodes)
996 Node->dump(this); 998 Node->dump(this);
997 if (isVerbose(IceV_Instructions)) 999 if (isVerbose(IceV_Instructions))
998 Str << "}\n"; 1000 Str << "}\n";
999 } 1001 }
1000 1002
1001 } // end of namespace Ice 1003 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceCfg.h ('k') | src/IceClFlags.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698