OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |