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

Side by Side Diff: src/IceThreading.h

Issue 1147023007: Subzero: Basic Block Profiler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Adds Basic Block Profiling. Created 5 years, 6 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
OLDNEW
1 //===- subzero/src/IceThreading.h - Threading functions ---------*- C++ -*-===// 1 //===- subzero/src/IceThreading.h - Threading functions ---------*- 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 threading-related functions. 10 // This file declares threading-related functions.
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 // Constructor for a WI_Asm work item. 187 // Constructor for a WI_Asm work item.
188 EmitterWorkItem(uint32_t Seq, Assembler *A); 188 EmitterWorkItem(uint32_t Seq, Assembler *A);
189 // Constructor for a WI_Cfg work item. 189 // Constructor for a WI_Cfg work item.
190 EmitterWorkItem(uint32_t Seq, Cfg *F); 190 EmitterWorkItem(uint32_t Seq, Cfg *F);
191 uint32_t getSequenceNumber() const { return Sequence; } 191 uint32_t getSequenceNumber() const { return Sequence; }
192 ItemKind getKind() const { return Kind; } 192 ItemKind getKind() const { return Kind; }
193 std::unique_ptr<VariableDeclarationList> getGlobalInits(); 193 std::unique_ptr<VariableDeclarationList> getGlobalInits();
194 std::unique_ptr<Assembler> getAsm(); 194 std::unique_ptr<Assembler> getAsm();
195 std::unique_ptr<Cfg> getCfg(); 195 std::unique_ptr<Cfg> getCfg();
196 196
197 void setProfilerInits(std::unique_ptr<VariableDeclarationList> ProfInits);
198 std::unique_ptr<VariableDeclarationList> getProfilerInits();
199
197 private: 200 private:
198 const uint32_t Sequence; 201 const uint32_t Sequence;
199 const ItemKind Kind; 202 const ItemKind Kind;
200 std::unique_ptr<VariableDeclarationList> GlobalInits; 203 std::unique_ptr<VariableDeclarationList> GlobalInits;
201 std::unique_ptr<Assembler> Function; 204 std::unique_ptr<Assembler> Function;
202 std::unique_ptr<Cfg> RawFunc; 205 std::unique_ptr<Cfg> RawFunc;
206
207 // ProfilerInits holds the initializers for an ProfilerInfo[].
Jim Stichnoth 2015/06/08 23:45:32 "for a" ?
John 2015/06/09 15:36:20 No longer relevant. I add the globals to GlobalIni
208 std::unique_ptr<VariableDeclarationList> ProfilerInits;
203 }; 209 };
204 210
205 } // end of namespace Ice 211 } // end of namespace Ice
206 212
207 #endif // SUBZERO_SRC_ICETHREADING_H 213 #endif // SUBZERO_SRC_ICETHREADING_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698