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 // This file implements the Cfg class, including constant pool | 10 // This file implements the Cfg class, including constant pool |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 setCurrentNode(NULL); | 338 setCurrentNode(NULL); |
339 if (getContext()->isVerbose(IceV_Liveness)) { | 339 if (getContext()->isVerbose(IceV_Liveness)) { |
340 // Print summary info about variables | 340 // Print summary info about variables |
341 for (VarList::const_iterator I = Variables.begin(), E = Variables.end(); | 341 for (VarList::const_iterator I = Variables.begin(), E = Variables.end(); |
342 I != E; ++I) { | 342 I != E; ++I) { |
343 Variable *Var = *I; | 343 Variable *Var = *I; |
344 Str << "//" | 344 Str << "//" |
345 << " multiblock=" << Var->isMultiblockLife() << " " | 345 << " multiblock=" << Var->isMultiblockLife() << " " |
346 << " weight=" << Var->getWeight() << " "; | 346 << " weight=" << Var->getWeight() << " "; |
347 Var->dump(this); | 347 Var->dump(this); |
| 348 if (Variable *Pref = Var->getPreferredRegister()) { |
| 349 Str << " pref="; |
| 350 Pref->dump(this); |
| 351 if (Var->getRegisterOverlap()) |
| 352 Str << ",overlap"; |
| 353 Str << " "; |
| 354 } |
348 Str << " LIVE=" << Var->getLiveRange() << "\n"; | 355 Str << " LIVE=" << Var->getLiveRange() << "\n"; |
349 } | 356 } |
350 } | 357 } |
351 // Print each basic block | 358 // Print each basic block |
352 for (NodeList::const_iterator I = Nodes.begin(), E = Nodes.end(); I != E; | 359 for (NodeList::const_iterator I = Nodes.begin(), E = Nodes.end(); I != E; |
353 ++I) { | 360 ++I) { |
354 (*I)->dump(this); | 361 (*I)->dump(this); |
355 } | 362 } |
356 if (getContext()->isVerbose(IceV_Instructions)) { | 363 if (getContext()->isVerbose(IceV_Instructions)) { |
357 Str << "}\n"; | 364 Str << "}\n"; |
358 } | 365 } |
359 } | 366 } |
360 | 367 |
361 } // end of namespace Ice | 368 } // end of namespace Ice |
OLD | NEW |