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 1643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1654 dump("After recomputing liveness for -decorate-asm"); | 1654 dump("After recomputing liveness for -decorate-asm"); |
1655 } | 1655 } |
1656 OstreamLocker L(Ctx); | 1656 OstreamLocker L(Ctx); |
1657 Ostream &Str = Ctx->getStrEmit(); | 1657 Ostream &Str = Ctx->getStrEmit(); |
1658 const Assembler *Asm = getAssembler<>(); | 1658 const Assembler *Asm = getAssembler<>(); |
1659 const bool NeedSandboxing = getFlags().getUseSandboxing(); | 1659 const bool NeedSandboxing = getFlags().getUseSandboxing(); |
1660 | 1660 |
1661 emitTextHeader(FunctionName, Ctx, Asm); | 1661 emitTextHeader(FunctionName, Ctx, Asm); |
1662 if (getFlags().getDecorateAsm()) { | 1662 if (getFlags().getDecorateAsm()) { |
1663 for (Variable *Var : getVariables()) { | 1663 for (Variable *Var : getVariables()) { |
1664 if (Var->hasStackOffset() && !Var->isRematerializable()) { | 1664 if (Var->hasKnownStackOffset() && !Var->isRematerializable()) { |
1665 Str << "\t" << Var->getSymbolicStackOffset() << " = " | 1665 Str << "\t" << Var->getSymbolicStackOffset() << " = " |
1666 << Var->getStackOffset() << "\n"; | 1666 << Var->getStackOffset() << "\n"; |
1667 } | 1667 } |
1668 } | 1668 } |
1669 } | 1669 } |
1670 for (CfgNode *Node : Nodes) { | 1670 for (CfgNode *Node : Nodes) { |
1671 if (NeedSandboxing && Node->needsAlignment()) { | 1671 if (NeedSandboxing && Node->needsAlignment()) { |
1672 Str << "\t" << Asm->getAlignDirective() << " " | 1672 Str << "\t" << Asm->getAlignDirective() << " " |
1673 << Asm->getBundleAlignLog2Bytes() << "\n"; | 1673 << Asm->getBundleAlignLog2Bytes() << "\n"; |
1674 } | 1674 } |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1767 } | 1767 } |
1768 } | 1768 } |
1769 // Print each basic block | 1769 // Print each basic block |
1770 for (CfgNode *Node : Nodes) | 1770 for (CfgNode *Node : Nodes) |
1771 Node->dump(this); | 1771 Node->dump(this); |
1772 if (isVerbose(IceV_Instructions)) | 1772 if (isVerbose(IceV_Instructions)) |
1773 Str << "}\n"; | 1773 Str << "}\n"; |
1774 } | 1774 } |
1775 | 1775 |
1776 } // end of namespace Ice | 1776 } // end of namespace Ice |
OLD | NEW |