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

Side by Side Diff: src/IceTimerTree.h

Issue 619983002: Subzero: Remove LLVM_DELETED_FUNCTION. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 6 years, 2 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 | « src/IceTargetLoweringX8632.h ('k') | src/IceTranslator.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/IceTimerTree.h - Pass timer defs -------------*- C++ -*-===// 1 //===- subzero/src/IceTimerTree.h - Pass timer 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 the TimerTree class, which allows flat and 10 // This file declares the TimerTree class, which allows flat and
(...skipping 20 matching lines...) Expand all
31 class TimerTreeNode { 31 class TimerTreeNode {
32 public: 32 public:
33 TimerTreeNode() : Parent(0), Interior(0), Time(0) {} 33 TimerTreeNode() : Parent(0), Interior(0), Time(0) {}
34 std::vector<TTindex> Children; // indexed by TimerIdT 34 std::vector<TTindex> Children; // indexed by TimerIdT
35 TTindex Parent; 35 TTindex Parent;
36 TimerIdT Interior; 36 TimerIdT Interior;
37 double Time; 37 double Time;
38 }; 38 };
39 39
40 class TimerStack { 40 class TimerStack {
41 TimerStack(const TimerStack &) LLVM_DELETED_FUNCTION; 41 TimerStack(const TimerStack &) = delete;
42 TimerStack &operator=(const TimerStack &) LLVM_DELETED_FUNCTION; 42 TimerStack &operator=(const TimerStack &) = delete;
43 43
44 public: 44 public:
45 TimerStack(const IceString &TopLevelName); 45 TimerStack(const IceString &TopLevelName);
46 static TimerIdT getTimerID(const IceString &Name); 46 static TimerIdT getTimerID(const IceString &Name);
47 void push(TimerIdT ID); 47 void push(TimerIdT ID);
48 void pop(TimerIdT ID); 48 void pop(TimerIdT ID);
49 void dump(Ostream &Str); 49 void dump(Ostream &Str);
50 50
51 private: 51 private:
52 void update(); 52 void update();
53 static double timestamp(); 53 static double timestamp();
54 const double FirstTimestamp; 54 const double FirstTimestamp;
55 double LastTimestamp; 55 double LastTimestamp;
56 uint64_t StateChangeCount; 56 uint64_t StateChangeCount;
57 static std::vector<IceString> IDs; // indexed by TimerIdT 57 static std::vector<IceString> IDs; // indexed by TimerIdT
58 std::vector<TimerTreeNode> Nodes; // indexed by TTindex 58 std::vector<TimerTreeNode> Nodes; // indexed by TTindex
59 std::vector<double> LeafTimes; // indexed by TimerIdT 59 std::vector<double> LeafTimes; // indexed by TimerIdT
60 TTindex StackTop; 60 TTindex StackTop;
61 }; 61 };
62 62
63 } // end of namespace Ice 63 } // end of namespace Ice
64 64
65 #endif // SUBZERO_SRC_ICETIMERTREE_H 65 #endif // SUBZERO_SRC_ICETIMERTREE_H
OLDNEW
« no previous file with comments | « src/IceTargetLoweringX8632.h ('k') | src/IceTranslator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698