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

Side by Side Diff: src/IceThreading.cpp

Issue 1202253002: Includes module header first. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Changes All Subzero includes to match LLVM style guide. 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.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.
11 // 11 //
12 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===//
13 13
14 #include "IceThreading.h"
15
14 #include "IceCfg.h" 16 #include "IceCfg.h"
15 #include "IceDefs.h" 17 #include "IceDefs.h"
16 #include "IceThreading.h"
17 18
18 namespace Ice { 19 namespace Ice {
19 20
20 EmitterWorkItem::EmitterWorkItem(uint32_t Seq) 21 EmitterWorkItem::EmitterWorkItem(uint32_t Seq)
21 : Sequence(Seq), Kind(WI_Nop), GlobalInits(nullptr), Function(nullptr), 22 : Sequence(Seq), Kind(WI_Nop), GlobalInits(nullptr), Function(nullptr),
22 RawFunc(nullptr) {} 23 RawFunc(nullptr) {}
23 EmitterWorkItem::EmitterWorkItem(uint32_t Seq, VariableDeclarationList *D) 24 EmitterWorkItem::EmitterWorkItem(uint32_t Seq, VariableDeclarationList *D)
24 : Sequence(Seq), Kind(WI_GlobalInits), GlobalInits(D), Function(nullptr), 25 : Sequence(Seq), Kind(WI_GlobalInits), GlobalInits(D), Function(nullptr),
25 RawFunc(nullptr) {} 26 RawFunc(nullptr) {}
26 EmitterWorkItem::EmitterWorkItem(uint32_t Seq, Assembler *A) 27 EmitterWorkItem::EmitterWorkItem(uint32_t Seq, Assembler *A)
(...skipping 19 matching lines...) Expand all
46 assert(getKind() == WI_Asm); 47 assert(getKind() == WI_Asm);
47 return std::move(Function); 48 return std::move(Function);
48 } 49 }
49 50
50 std::unique_ptr<Cfg> EmitterWorkItem::getCfg() { 51 std::unique_ptr<Cfg> EmitterWorkItem::getCfg() {
51 assert(getKind() == WI_Cfg); 52 assert(getKind() == WI_Cfg);
52 return std::move(RawFunc); 53 return std::move(RawFunc);
53 } 54 }
54 55
55 } // end of namespace Ice 56 } // end of namespace Ice
OLDNEW
« src/IceTargetLoweringARM32.cpp ('K') | « src/IceThreading.h ('k') | src/IceTimerTree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698