| 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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 JT.pushTarget( | 620 JT.pushTarget( |
| 621 getAssembler()->getOrCreateCfgNodeLabel(Index)->getPosition()); | 621 getAssembler()->getOrCreateCfgNodeLabel(Index)->getPosition()); |
| 622 } | 622 } |
| 623 } | 623 } |
| 624 } break; | 624 } break; |
| 625 case FT_Asm: { | 625 case FT_Asm: { |
| 626 // Emit the assembly directly so we don't need to hang on to all the names | 626 // Emit the assembly directly so we don't need to hang on to all the names |
| 627 for (const InstJumpTable *JumpTable : JumpTables) | 627 for (const InstJumpTable *JumpTable : JumpTables) |
| 628 getTarget()->emitJumpTable(this, JumpTable); | 628 getTarget()->emitJumpTable(this, JumpTable); |
| 629 } break; | 629 } break; |
| 630 default: | |
| 631 llvm::report_fatal_error("Invalid out file type."); | |
| 632 break; | |
| 633 } | 630 } |
| 634 } | 631 } |
| 635 | 632 |
| 636 void Cfg::emit() { | 633 void Cfg::emit() { |
| 637 if (!BuildDefs::dump()) | 634 if (!BuildDefs::dump()) |
| 638 return; | 635 return; |
| 639 TimerMarker T(TimerStack::TT_emit, this); | 636 TimerMarker T(TimerStack::TT_emit, this); |
| 640 if (Ctx->getFlags().getDecorateAsm()) { | 637 if (Ctx->getFlags().getDecorateAsm()) { |
| 641 renumberInstructions(); | 638 renumberInstructions(); |
| 642 getVMetadata()->init(VMK_Uses); | 639 getVMetadata()->init(VMK_Uses); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 } | 713 } |
| 717 } | 714 } |
| 718 // Print each basic block | 715 // Print each basic block |
| 719 for (CfgNode *Node : Nodes) | 716 for (CfgNode *Node : Nodes) |
| 720 Node->dump(this); | 717 Node->dump(this); |
| 721 if (isVerbose(IceV_Instructions)) | 718 if (isVerbose(IceV_Instructions)) |
| 722 Str << "}\n"; | 719 Str << "}\n"; |
| 723 } | 720 } |
| 724 | 721 |
| 725 } // end of namespace Ice | 722 } // end of namespace Ice |
| OLD | NEW |