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

Side by Side Diff: src/IceCfgNode.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/IceCfgNode.cpp - Basic block (node) implementation -----===// 1 //===- subzero/src/IceCfgNode.cpp - Basic block (node) implementation -----===//
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 implements the CfgNode class, including the complexities 10 // This file implements the CfgNode class, including the complexities
11 // of instruction insertion and in-edge calculation. 11 // of instruction insertion and in-edge calculation.
12 // 12 //
13 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===//
14 14
15 #include "IceCfgNode.h"
16
15 #include "IceAssembler.h" 17 #include "IceAssembler.h"
16 #include "IceCfg.h" 18 #include "IceCfg.h"
17 #include "IceCfgNode.h"
18 #include "IceGlobalInits.h" 19 #include "IceGlobalInits.h"
19 #include "IceInst.h" 20 #include "IceInst.h"
20 #include "IceLiveness.h" 21 #include "IceLiveness.h"
21 #include "IceOperand.h" 22 #include "IceOperand.h"
22 #include "IceTargetLowering.h" 23 #include "IceTargetLowering.h"
23 24
24 namespace Ice { 25 namespace Ice {
25 26
26 CfgNode::CfgNode(Cfg *Func, SizeT LabelNumber) 27 CfgNode::CfgNode(Cfg *Func, SizeT LabelNumber)
27 : Func(Func), Number(LabelNumber) {} 28 : Func(Func), Number(LabelNumber) {}
(...skipping 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 InstIntrinsicCall *Inst = InstIntrinsicCall::create( 1267 InstIntrinsicCall *Inst = InstIntrinsicCall::create(
1267 Func, 5, Func->makeVariable(IceType_i64), RMWI64Name, Info->Info); 1268 Func, 5, Func->makeVariable(IceType_i64), RMWI64Name, Info->Info);
1268 Inst->addArg(AtomicRMWOp); 1269 Inst->addArg(AtomicRMWOp);
1269 Inst->addArg(Counter); 1270 Inst->addArg(Counter);
1270 Inst->addArg(One); 1271 Inst->addArg(One);
1271 Inst->addArg(OrderAcquireRelease); 1272 Inst->addArg(OrderAcquireRelease);
1272 Insts.push_front(Inst); 1273 Insts.push_front(Inst);
1273 } 1274 }
1274 1275
1275 } // end of namespace Ice 1276 } // end of namespace Ice
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698