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

Side by Side Diff: src/IceCfg.h

Issue 672393003: Subzero: Minor refactoring/additions in preparation for phi edge splitting. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Remove deprecated advanceBackward method Created 6 years, 1 month 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/IceCfg.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/IceCfg.h - Control flow graph ----------------*- C++ -*-===// 1 //===- subzero/src/IceCfg.h - Control flow graph ----------------*- 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 // This file declares the Cfg class, which represents the control flow 10 // This file declares the Cfg class, which represents the control flow
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 void placePhiStores(); 112 void placePhiStores();
113 void deletePhis(); 113 void deletePhis();
114 void doAddressOpt(); 114 void doAddressOpt();
115 void doArgLowering(); 115 void doArgLowering();
116 void doNopInsertion(); 116 void doNopInsertion();
117 void genCode(); 117 void genCode();
118 void genFrame(); 118 void genFrame();
119 void livenessLightweight(); 119 void livenessLightweight();
120 void liveness(LivenessMode Mode); 120 void liveness(LivenessMode Mode);
121 bool validateLiveness() const; 121 bool validateLiveness() const;
122 void deleteRedundantAssignments();
122 void doBranchOpt(); 123 void doBranchOpt();
123 124
124 // Manage the CurrentNode field, which is used for validating the 125 // Manage the CurrentNode field, which is used for validating the
125 // Variable::DefNode field during dumping/emitting. 126 // Variable::DefNode field during dumping/emitting.
126 void setCurrentNode(const CfgNode *Node) { CurrentNode = Node; } 127 void setCurrentNode(const CfgNode *Node) { CurrentNode = Node; }
127 void resetCurrentNode() { setCurrentNode(NULL); } 128 void resetCurrentNode() { setCurrentNode(NULL); }
128 const CfgNode *getCurrentNode() const { return CurrentNode; } 129 const CfgNode *getCurrentNode() const { return CurrentNode; }
129 130
130 void emit(); 131 void emit();
131 void dump(const IceString &Message = ""); 132 void dump(const IceString &Message = "");
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // validating Variable::DefNode. Normally, a traversal over 187 // validating Variable::DefNode. Normally, a traversal over
187 // CfgNodes maintains this, but before global operations like 188 // CfgNodes maintains this, but before global operations like
188 // register allocation, resetCurrentNode() should be called to avoid 189 // register allocation, resetCurrentNode() should be called to avoid
189 // spurious validation failures. 190 // spurious validation failures.
190 const CfgNode *CurrentNode; 191 const CfgNode *CurrentNode;
191 }; 192 };
192 193
193 } // end of namespace Ice 194 } // end of namespace Ice
194 195
195 #endif // SUBZERO_SRC_ICECFG_H 196 #endif // SUBZERO_SRC_ICECFG_H
OLDNEW
« no previous file with comments | « no previous file | src/IceCfg.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698