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

Side by Side Diff: src/IceCfg.h

Issue 1746613002: Subzero: Reduce copying of Liveness bitvectors. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix huge perf problem in MINIMAL build Created 4 years, 9 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/IceCfg.cpp » ('j') | src/IceCfg.cpp » ('J')
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 /// \file 10 /// \file
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 212
213 /// \name Manage the CurrentNode field. 213 /// \name Manage the CurrentNode field.
214 /// CurrentNode is used for validating the Variable::DefNode field during 214 /// CurrentNode is used for validating the Variable::DefNode field during
215 /// dumping/emitting. 215 /// dumping/emitting.
216 /// @{ 216 /// @{
217 void setCurrentNode(const CfgNode *Node) { CurrentNode = Node; } 217 void setCurrentNode(const CfgNode *Node) { CurrentNode = Node; }
218 void resetCurrentNode() { setCurrentNode(nullptr); } 218 void resetCurrentNode() { setCurrentNode(nullptr); }
219 const CfgNode *getCurrentNode() const { return CurrentNode; } 219 const CfgNode *getCurrentNode() const { return CurrentNode; }
220 /// @} 220 /// @}
221 221
222 static size_t getTotalMemoryMB();
John 2016/02/29 15:12:31 why is this a member of CFG? this seems like a glo
Jim Stichnoth 2016/02/29 22:58:26 Added a comment that this was really for use withi
223
222 void emit(); 224 void emit();
223 void emitIAS(); 225 void emitIAS();
224 static void emitTextHeader(const IceString &MangledName, GlobalContext *Ctx, 226 static void emitTextHeader(const IceString &MangledName, GlobalContext *Ctx,
225 const Assembler *Asm); 227 const Assembler *Asm);
226 void dump(const IceString &Message = ""); 228 void dump(const IceString &Message = "");
227 229
228 /// Allocate data of type T using the per-Cfg allocator. 230 /// Allocate data of type T using the per-Cfg allocator.
229 template <typename T> T *allocate() { return Allocator->Allocate<T>(); } 231 template <typename T> T *allocate() { return Allocator->Allocate<T>(); }
230 232
231 /// Allocate an array of data of type T using the per-Cfg allocator. 233 /// Allocate an array of data of type T using the per-Cfg allocator.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 309
308 public: 310 public:
309 static void TlsInit() { CfgAllocatorTraits::init(); } 311 static void TlsInit() { CfgAllocatorTraits::init(); }
310 }; 312 };
311 313
312 template <> Variable *Cfg::makeVariable<Variable>(Type Ty); 314 template <> Variable *Cfg::makeVariable<Variable>(Type Ty);
313 315
314 } // end of namespace Ice 316 } // end of namespace Ice
315 317
316 #endif // SUBZERO_SRC_ICECFG_H 318 #endif // SUBZERO_SRC_ICECFG_H
OLDNEW
« no previous file with comments | « no previous file | src/IceCfg.cpp » ('j') | src/IceCfg.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698