Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Side by Side Diff: src/IceCfg.cpp

Issue 2177033002: Subzero: Local variable splitting. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes, mostly renaming. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Makefile.standalone ('k') | src/IceCfgNode.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Makefile.standalone ('k') | src/IceCfgNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698