| 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 return; | 342 return; |
| 343 Ostream &Str = Ctx->getStrDump(); | 343 Ostream &Str = Ctx->getStrDump(); |
| 344 if (!Message.empty()) | 344 if (!Message.empty()) |
| 345 Str << "================ " << Message << " ================\n"; | 345 Str << "================ " << Message << " ================\n"; |
| 346 setCurrentNode(getEntryNode()); | 346 setCurrentNode(getEntryNode()); |
| 347 // Print function name+args | 347 // Print function name+args |
| 348 if (getContext()->isVerbose(IceV_Instructions)) { | 348 if (getContext()->isVerbose(IceV_Instructions)) { |
| 349 Str << "define "; | 349 Str << "define "; |
| 350 if (getInternal()) | 350 if (getInternal()) |
| 351 Str << "internal "; | 351 Str << "internal "; |
| 352 Str << ReturnType << " @" << getFunctionName() << "("; | 352 Str << ReturnType << " @" << Ctx->mangleName(getFunctionName()) << "("; |
| 353 for (SizeT i = 0; i < Args.size(); ++i) { | 353 for (SizeT i = 0; i < Args.size(); ++i) { |
| 354 if (i > 0) | 354 if (i > 0) |
| 355 Str << ", "; | 355 Str << ", "; |
| 356 Str << Args[i]->getType() << " "; | 356 Str << Args[i]->getType() << " "; |
| 357 Args[i]->dump(this); | 357 Args[i]->dump(this); |
| 358 } | 358 } |
| 359 Str << ") {\n"; | 359 Str << ") {\n"; |
| 360 } | 360 } |
| 361 resetCurrentNode(); | 361 resetCurrentNode(); |
| 362 if (getContext()->isVerbose(IceV_Liveness)) { | 362 if (getContext()->isVerbose(IceV_Liveness)) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 373 } | 373 } |
| 374 } | 374 } |
| 375 // Print each basic block | 375 // Print each basic block |
| 376 for (CfgNode *Node : Nodes) | 376 for (CfgNode *Node : Nodes) |
| 377 Node->dump(this); | 377 Node->dump(this); |
| 378 if (getContext()->isVerbose(IceV_Instructions)) | 378 if (getContext()->isVerbose(IceV_Instructions)) |
| 379 Str << "}\n"; | 379 Str << "}\n"; |
| 380 } | 380 } |
| 381 | 381 |
| 382 } // end of namespace Ice | 382 } // end of namespace Ice |
| OLD | NEW |