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

Side by Side Diff: src/IceCfg.h

Issue 814353002: Subzero: Convert NULL->nullptr. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Revert crosstest whitespace changes Created 6 years 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 void genFrame(); 147 void genFrame();
148 void livenessLightweight(); 148 void livenessLightweight();
149 void liveness(LivenessMode Mode); 149 void liveness(LivenessMode Mode);
150 bool validateLiveness() const; 150 bool validateLiveness() const;
151 void contractEmptyNodes(); 151 void contractEmptyNodes();
152 void doBranchOpt(); 152 void doBranchOpt();
153 153
154 // Manage the CurrentNode field, which is used for validating the 154 // Manage the CurrentNode field, which is used for validating the
155 // Variable::DefNode field during dumping/emitting. 155 // Variable::DefNode field during dumping/emitting.
156 void setCurrentNode(const CfgNode *Node) { CurrentNode = Node; } 156 void setCurrentNode(const CfgNode *Node) { CurrentNode = Node; }
157 void resetCurrentNode() { setCurrentNode(NULL); } 157 void resetCurrentNode() { setCurrentNode(nullptr); }
158 const CfgNode *getCurrentNode() const { return CurrentNode; } 158 const CfgNode *getCurrentNode() const { return CurrentNode; }
159 159
160 void emit(); 160 void emit();
161 void emitIAS(); 161 void emitIAS();
162 void emitTextHeader(const IceString &MangledName); 162 void emitTextHeader(const IceString &MangledName);
163 void dump(const IceString &Message = ""); 163 void dump(const IceString &Message = "");
164 164
165 // Allocate data of type T using the per-Cfg allocator. 165 // Allocate data of type T using the per-Cfg allocator.
166 template <typename T> T *allocate() { return Allocator->Allocate<T>(); } 166 template <typename T> T *allocate() { return Allocator->Allocate<T>(); }
167 167
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 212
213 // Maintain a pointer in TLS to the current Cfg being translated. 213 // Maintain a pointer in TLS to the current Cfg being translated.
214 // This is primarily for accessing its allocator statelessly, but 214 // This is primarily for accessing its allocator statelessly, but
215 // other uses are possible. 215 // other uses are possible.
216 thread_local static const Cfg *CurrentCfg; 216 thread_local static const Cfg *CurrentCfg;
217 }; 217 };
218 218
219 } // end of namespace Ice 219 } // end of namespace Ice
220 220
221 #endif // SUBZERO_SRC_ICECFG_H 221 #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