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

Side by Side Diff: src/IceThreading.cpp

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
« src/IceThreading.h ('K') | « src/IceThreading.h ('k') | no next file » | 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/IceThreading.cpp - Threading function definitions ------===// 1 //===- subzero/src/IceThreading.cpp - Threading function definitions ------===//
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 defines threading-related functions. 10 // This file defines threading-related functions.
(...skipping 27 matching lines...) Expand all
38 std::unique_ptr<Assembler> EmitterWorkItem::getAsm() { 38 std::unique_ptr<Assembler> EmitterWorkItem::getAsm() {
39 assert(getKind() == WI_Asm); 39 assert(getKind() == WI_Asm);
40 return std::move(Function); 40 return std::move(Function);
41 } 41 }
42 42
43 std::unique_ptr<Cfg> EmitterWorkItem::getCfg() { 43 std::unique_ptr<Cfg> EmitterWorkItem::getCfg() {
44 assert(getKind() == WI_Cfg); 44 assert(getKind() == WI_Cfg);
45 return std::move(RawFunc); 45 return std::move(RawFunc);
46 } 46 }
47 47
48 void EmitterWorkItem::setProfilerInits(
49 std::unique_ptr<VariableDeclarationList> ProfInits) {
50 assert(getKind() == WI_Asm || getKind() == WI_Cfg);
51 ProfilerInits = std::move(ProfInits);
52 }
53
54 std::unique_ptr<VariableDeclarationList> EmitterWorkItem::getProfilerInits() {
55 assert(getKind() == WI_Asm || getKind() == WI_Cfg);
56 return std::move(ProfilerInits);
57 }
58
48 } // end of namespace Ice 59 } // end of namespace Ice
OLDNEW
« src/IceThreading.h ('K') | « src/IceThreading.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698