| 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 1559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1570 dump("After recomputing liveness for -decorate-asm"); | 1570 dump("After recomputing liveness for -decorate-asm"); |
| 1571 } | 1571 } |
| 1572 OstreamLocker L(Ctx); | 1572 OstreamLocker L(Ctx); |
| 1573 Ostream &Str = Ctx->getStrEmit(); | 1573 Ostream &Str = Ctx->getStrEmit(); |
| 1574 const Assembler *Asm = getAssembler<>(); | 1574 const Assembler *Asm = getAssembler<>(); |
| 1575 const bool NeedSandboxing = getFlags().getUseSandboxing(); | 1575 const bool NeedSandboxing = getFlags().getUseSandboxing(); |
| 1576 | 1576 |
| 1577 emitTextHeader(FunctionName, Ctx, Asm); | 1577 emitTextHeader(FunctionName, Ctx, Asm); |
| 1578 if (getFlags().getDecorateAsm()) { | 1578 if (getFlags().getDecorateAsm()) { |
| 1579 for (Variable *Var : getVariables()) { | 1579 for (Variable *Var : getVariables()) { |
| 1580 if (Var->getStackOffset() && !Var->isRematerializable()) { | 1580 if (Var->hasStackOffset() && !Var->isRematerializable()) { |
| 1581 Str << "\t" << Var->getSymbolicStackOffset() << " = " | 1581 Str << "\t" << Var->getSymbolicStackOffset() << " = " |
| 1582 << Var->getStackOffset() << "\n"; | 1582 << Var->getStackOffset() << "\n"; |
| 1583 } | 1583 } |
| 1584 } | 1584 } |
| 1585 } | 1585 } |
| 1586 for (CfgNode *Node : Nodes) { | 1586 for (CfgNode *Node : Nodes) { |
| 1587 if (NeedSandboxing && Node->needsAlignment()) { | 1587 if (NeedSandboxing && Node->needsAlignment()) { |
| 1588 Str << "\t" << Asm->getAlignDirective() << " " | 1588 Str << "\t" << Asm->getAlignDirective() << " " |
| 1589 << Asm->getBundleAlignLog2Bytes() << "\n"; | 1589 << Asm->getBundleAlignLog2Bytes() << "\n"; |
| 1590 } | 1590 } |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1683 } | 1683 } |
| 1684 } | 1684 } |
| 1685 // Print each basic block | 1685 // Print each basic block |
| 1686 for (CfgNode *Node : Nodes) | 1686 for (CfgNode *Node : Nodes) |
| 1687 Node->dump(this); | 1687 Node->dump(this); |
| 1688 if (isVerbose(IceV_Instructions)) | 1688 if (isVerbose(IceV_Instructions)) |
| 1689 Str << "}\n"; | 1689 Str << "}\n"; |
| 1690 } | 1690 } |
| 1691 | 1691 |
| 1692 } // end of namespace Ice | 1692 } // end of namespace Ice |
| OLD | NEW |