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

Side by Side Diff: src/IceGlobalContext.h

Issue 802183004: Subzero: Use CFG-local arena allocation for relevant containers. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Typo fix 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 | « src/IceDefs.h ('k') | src/IceInst.h » ('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/IceGlobalContext.h - Global context defs -----*- C++ -*-===// 1 //===- subzero/src/IceGlobalContext.h - Global context defs -----*- 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 aspects of the compilation that persist across 10 // This file declares aspects of the compilation that persist across
11 // multiple functions. 11 // multiple functions.
12 // 12 //
13 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===//
14 14
15 #ifndef SUBZERO_SRC_ICEGLOBALCONTEXT_H 15 #ifndef SUBZERO_SRC_ICEGLOBALCONTEXT_H
16 #define SUBZERO_SRC_ICEGLOBALCONTEXT_H 16 #define SUBZERO_SRC_ICEGLOBALCONTEXT_H
17 17
18 #include <memory> 18 #include <memory>
19 19
20 #include "llvm/Support/Allocator.h"
21
22 #include "IceDefs.h" 20 #include "IceDefs.h"
23 #include "IceClFlags.h" 21 #include "IceClFlags.h"
24 #include "IceELFObjectWriter.h" 22 #include "IceELFObjectWriter.h"
25 #include "IceIntrinsics.h" 23 #include "IceIntrinsics.h"
26 #include "IceRNG.h" 24 #include "IceRNG.h"
27 #include "IceTimerTree.h" 25 #include "IceTimerTree.h"
28 #include "IceTypes.h" 26 #include "IceTypes.h"
29 27
30 namespace Ice { 28 namespace Ice {
31 29
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 void popTimer(TimerIdT ID, TimerStackIdT StackID = TSK_Default); 199 void popTimer(TimerIdT ID, TimerStackIdT StackID = TSK_Default);
202 void resetTimer(TimerStackIdT StackID); 200 void resetTimer(TimerStackIdT StackID);
203 void setTimerName(TimerStackIdT StackID, const IceString &NewName); 201 void setTimerName(TimerStackIdT StackID, const IceString &NewName);
204 void dumpTimers(TimerStackIdT StackID = TSK_Default, 202 void dumpTimers(TimerStackIdT StackID = TSK_Default,
205 bool DumpCumulative = true); 203 bool DumpCumulative = true);
206 204
207 private: 205 private:
208 Ostream *StrDump; // Stream for dumping / diagnostics 206 Ostream *StrDump; // Stream for dumping / diagnostics
209 Ostream *StrEmit; // Stream for code emission 207 Ostream *StrEmit; // Stream for code emission
210 208
211 llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 1024 * 1024> Allocator; 209 ArenaAllocator Allocator;
212 VerboseMask VMask; 210 VerboseMask VMask;
213 std::unique_ptr<class ConstantPool> ConstPool; 211 std::unique_ptr<class ConstantPool> ConstPool;
214 Intrinsics IntrinsicsInfo; 212 Intrinsics IntrinsicsInfo;
215 const TargetArch Arch; 213 const TargetArch Arch;
216 const OptLevel Opt; 214 const OptLevel Opt;
217 const IceString TestPrefix; 215 const IceString TestPrefix;
218 const ClFlags &Flags; 216 const ClFlags &Flags;
219 bool HasEmittedFirstMethod; 217 bool HasEmittedFirstMethod;
220 RandomNumberGenerator RNG; 218 RandomNumberGenerator RNG;
221 std::unique_ptr<ELFObjectWriter> ObjectWriter; 219 std::unique_ptr<ELFObjectWriter> ObjectWriter;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 252
255 private: 253 private:
256 TimerIdT ID; 254 TimerIdT ID;
257 GlobalContext *const Ctx; 255 GlobalContext *const Ctx;
258 bool Active; 256 bool Active;
259 }; 257 };
260 258
261 } // end of namespace Ice 259 } // end of namespace Ice
262 260
263 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H 261 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H
OLDNEW
« no previous file with comments | « src/IceDefs.h ('k') | src/IceInst.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698