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

Side by Side Diff: src/IceCfg.h

Issue 1768173002: Subzero: Count lookups of each constant value in the constant pool. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes 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/IceClFlags.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 /// \file 10 /// \file
(...skipping 23 matching lines...) Expand all
34 34
35 static std::unique_ptr<Cfg> create(GlobalContext *Ctx, 35 static std::unique_ptr<Cfg> create(GlobalContext *Ctx,
36 uint32_t SequenceNumber) { 36 uint32_t SequenceNumber) {
37 return std::unique_ptr<Cfg>(new Cfg(Ctx, SequenceNumber)); 37 return std::unique_ptr<Cfg>(new Cfg(Ctx, SequenceNumber));
38 } 38 }
39 39
40 GlobalContext *getContext() const { return Ctx; } 40 GlobalContext *getContext() const { return Ctx; }
41 uint32_t getSequenceNumber() const { return SequenceNumber; } 41 uint32_t getSequenceNumber() const { return SequenceNumber; }
42 42
43 static constexpr VerboseMask defaultVerboseMask() { 43 static constexpr VerboseMask defaultVerboseMask() {
44 return IceV_All & ~IceV_Status & ~IceV_AvailableRegs; 44 return (IceV_NO_PER_PASS_DUMP_BEYOND << 1) - 1;
45 } 45 }
46 /// Returns true if any of the specified options in the verbose mask are set. 46 /// Returns true if any of the specified options in the verbose mask are set.
47 /// If the argument is omitted, it checks if any verbose options at all are 47 /// If the argument is omitted, it checks if any verbose options at all are
48 /// set. 48 /// set.
49 bool isVerbose(VerboseMask Mask = defaultVerboseMask()) const { 49 bool isVerbose(VerboseMask Mask = defaultVerboseMask()) const {
50 return VMask & Mask; 50 return VMask & Mask;
51 } 51 }
52 void setVerbose(VerboseMask Mask) { VMask = Mask; } 52 void setVerbose(VerboseMask Mask) { VMask = Mask; }
53 53
54 /// \name Manage the name and return type of the function being translated. 54 /// \name Manage the name and return type of the function being translated.
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 311
312 public: 312 public:
313 static void TlsInit() { CfgAllocatorTraits::init(); } 313 static void TlsInit() { CfgAllocatorTraits::init(); }
314 }; 314 };
315 315
316 template <> Variable *Cfg::makeVariable<Variable>(Type Ty); 316 template <> Variable *Cfg::makeVariable<Variable>(Type Ty);
317 317
318 } // end of namespace Ice 318 } // end of namespace Ice
319 319
320 #endif // SUBZERO_SRC_ICECFG_H 320 #endif // SUBZERO_SRC_ICECFG_H
OLDNEW
« no previous file with comments | « no previous file | src/IceClFlags.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698