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

Side by Side Diff: src/IceCfgNode.h

Issue 1351433002: Subzero: Validate phi instructions after CFG construction. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add the test provenance Created 5 years, 3 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 | « src/IceCfg.cpp ('k') | src/IceCfgNode.cpp » ('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/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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 /// \name Manage predecessors and successors. 83 /// \name Manage predecessors and successors.
84 /// @{ 84 /// @{
85 85
86 /// Add a predecessor edge to the InEdges list for each of this 86 /// Add a predecessor edge to the InEdges list for each of this
87 /// node's successors. 87 /// node's successors.
88 void computePredecessors(); 88 void computePredecessors();
89 void computeSuccessors(); 89 void computeSuccessors();
90 CfgNode *splitIncomingEdge(CfgNode *Pred, SizeT InEdgeIndex); 90 CfgNode *splitIncomingEdge(CfgNode *Pred, SizeT InEdgeIndex);
91 /// @} 91 /// @}
92 92
93 void validatePhis();
93 void placePhiLoads(); 94 void placePhiLoads();
94 void placePhiStores(); 95 void placePhiStores();
95 void deletePhis(); 96 void deletePhis();
96 void advancedPhiLowering(); 97 void advancedPhiLowering();
97 void doAddressOpt(); 98 void doAddressOpt();
98 void doNopInsertion(RandomNumberGenerator &RNG); 99 void doNopInsertion(RandomNumberGenerator &RNG);
99 void genCode(); 100 void genCode();
100 void livenessLightweight(); 101 void livenessLightweight();
101 bool liveness(Liveness *Liveness); 102 bool liveness(Liveness *Liveness);
102 void livenessAddIntervals(Liveness *Liveness, InstNumberT FirstInstNum, 103 void livenessAddIntervals(Liveness *Liveness, InstNumberT FirstInstNum,
(...skipping 20 matching lines...) Expand all
123 InstNumberT InstCountEstimate = 0; /// rough instruction count estimate 124 InstNumberT InstCountEstimate = 0; /// rough instruction count estimate
124 NodeList InEdges; /// in no particular order 125 NodeList InEdges; /// in no particular order
125 NodeList OutEdges; /// in no particular order 126 NodeList OutEdges; /// in no particular order
126 PhiList Phis; /// unordered set of phi instructions 127 PhiList Phis; /// unordered set of phi instructions
127 InstList Insts; /// ordered list of non-phi instructions 128 InstList Insts; /// ordered list of non-phi instructions
128 }; 129 };
129 130
130 } // end of namespace Ice 131 } // end of namespace Ice
131 132
132 #endif // SUBZERO_SRC_ICECFGNODE_H 133 #endif // SUBZERO_SRC_ICECFGNODE_H
OLDNEW
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceCfgNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698