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

Side by Side Diff: src/IceCfgNode.h

Issue 1221643012: Subzero: Add -Wshadow to the build. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 5 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
OLDNEW
1 //===- subzero/src/IceCfgNode.h - Control flow graph node -------*- C++ -*-===// 1 //===- subzero/src/IceCfgNode.h - Control flow graph node -------*- C++ -*-===//
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 void advancedPhiLowering(); 89 void advancedPhiLowering();
90 void doAddressOpt(); 90 void doAddressOpt();
91 void doNopInsertion(); 91 void doNopInsertion();
92 void genCode(); 92 void genCode();
93 void livenessLightweight(); 93 void livenessLightweight();
94 bool liveness(Liveness *Liveness); 94 bool liveness(Liveness *Liveness);
95 void livenessAddIntervals(Liveness *Liveness, InstNumberT FirstInstNum, 95 void livenessAddIntervals(Liveness *Liveness, InstNumberT FirstInstNum,
96 InstNumberT LastInstNum); 96 InstNumberT LastInstNum);
97 void contractIfEmpty(); 97 void contractIfEmpty();
98 void doBranchOpt(const CfgNode *NextNode); 98 void doBranchOpt(const CfgNode *NextNode);
99 void emit(Cfg *Func) const; 99 void emit() const;
100 void emitIAS(Cfg *Func) const; 100 void emitIAS() const;
101 void dump(Cfg *Func) const; 101 void dump() const;
102 102
103 void profileExecutionCount(VariableDeclaration *Var); 103 void profileExecutionCount(VariableDeclaration *Var);
104 104
105 private: 105 private:
106 CfgNode(Cfg *Func, SizeT LabelIndex); 106 CfgNode(Cfg *Func, SizeT LabelIndex);
107 Cfg *const Func; 107 Cfg *const Func;
108 SizeT Number; /// label index 108 SizeT Number; /// label index
109 Cfg::IdentifierIndexType NameIndex = 109 Cfg::IdentifierIndexType NameIndex =
110 Cfg::IdentifierIndexInvalid; /// index into Cfg::NodeNames table 110 Cfg::IdentifierIndexInvalid; /// index into Cfg::NodeNames table
111 bool HasReturn = false; /// does this block need an epilog? 111 bool HasReturn = false; /// does this block need an epilog?
112 bool NeedsPlacement = false; 112 bool NeedsPlacement = false;
113 InstNumberT InstCountEstimate = 0; /// rough instruction count estimate 113 InstNumberT InstCountEstimate = 0; /// rough instruction count estimate
114 NodeList InEdges; /// in no particular order 114 NodeList InEdges; /// in no particular order
115 NodeList OutEdges; /// in no particular order 115 NodeList OutEdges; /// in no particular order
116 PhiList Phis; /// unordered set of phi instructions 116 PhiList Phis; /// unordered set of phi instructions
117 InstList Insts; /// ordered list of non-phi instructions 117 InstList Insts; /// ordered list of non-phi instructions
118 }; 118 };
119 119
120 } // end of namespace Ice 120 } // end of namespace Ice
121 121
122 #endif // SUBZERO_SRC_ICECFGNODE_H 122 #endif // SUBZERO_SRC_ICECFGNODE_H
OLDNEW
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceCfgNode.cpp » ('j') | src/IceConverter.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698