| 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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 for (VarList::const_iterator I = Variables.begin(), E = Variables.end(); | 370 for (VarList::const_iterator I = Variables.begin(), E = Variables.end(); |
| 371 I != E; ++I) { | 371 I != E; ++I) { |
| 372 Variable *Var = *I; | 372 Variable *Var = *I; |
| 373 Str << "// multiblock="; | 373 Str << "// multiblock="; |
| 374 if (getVMetadata()->isTracked(Var)) | 374 if (getVMetadata()->isTracked(Var)) |
| 375 Str << getVMetadata()->isMultiBlock(Var); | 375 Str << getVMetadata()->isMultiBlock(Var); |
| 376 else | 376 else |
| 377 Str << "?"; | 377 Str << "?"; |
| 378 Str << " weight=" << Var->getWeight() << " "; | 378 Str << " weight=" << Var->getWeight() << " "; |
| 379 Var->dump(this); | 379 Var->dump(this); |
| 380 if (Variable *Pref = Var->getPreferredRegister()) { | |
| 381 Str << " pref="; | |
| 382 Pref->dump(this); | |
| 383 if (Var->getRegisterOverlap()) | |
| 384 Str << ",overlap"; | |
| 385 Str << " "; | |
| 386 } | |
| 387 Str << " LIVE=" << Var->getLiveRange() << "\n"; | 380 Str << " LIVE=" << Var->getLiveRange() << "\n"; |
| 388 } | 381 } |
| 389 } | 382 } |
| 390 // Print each basic block | 383 // Print each basic block |
| 391 for (NodeList::const_iterator I = Nodes.begin(), E = Nodes.end(); I != E; | 384 for (NodeList::const_iterator I = Nodes.begin(), E = Nodes.end(); I != E; |
| 392 ++I) { | 385 ++I) { |
| 393 (*I)->dump(this); | 386 (*I)->dump(this); |
| 394 } | 387 } |
| 395 if (getContext()->isVerbose(IceV_Instructions)) { | 388 if (getContext()->isVerbose(IceV_Instructions)) { |
| 396 Str << "}\n"; | 389 Str << "}\n"; |
| 397 } | 390 } |
| 398 } | 391 } |
| 399 | 392 |
| 400 } // end of namespace Ice | 393 } // end of namespace Ice |
| OLD | NEW |