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

Side by Side Diff: src/IceCfg.cpp

Issue 2116213002: Subzero: Allow deeper levels of variable splitting. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rename getLinkedToTop() to getLinkedToRoot() Created 4 years, 5 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 | « no previous file | src/IceInst.cpp » ('j') | src/IceInst.cpp » ('J')
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 1559 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | src/IceInst.cpp » ('j') | src/IceInst.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698