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

Side by Side Diff: src/IceTargetLowering.cpp

Issue 877003003: Subzero: Use a "known" version of clang-format. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add a clang-format blacklist. Fix formatting "errors". Created 5 years, 10 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/IceTargetLowering.h ('k') | src/IceTargetLoweringX8632.cpp » ('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/IceTargetLowering.cpp - Basic lowering implementation --===// 1 //===- subzero/src/IceTargetLowering.cpp - Basic lowering 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 skeleton of the TargetLowering class, 10 // This file implements the skeleton of the TargetLowering class,
(...skipping 25 matching lines...) Expand all
36 36
37 cl::opt<int> MaxNopsPerInstruction( 37 cl::opt<int> MaxNopsPerInstruction(
38 "max-nops-per-instruction", 38 "max-nops-per-instruction",
39 cl::desc("Max number of nops to insert per instruction"), cl::init(1)); 39 cl::desc("Max number of nops to insert per instruction"), cl::init(1));
40 40
41 cl::opt<int> NopProbabilityAsPercentage( 41 cl::opt<int> NopProbabilityAsPercentage(
42 "nop-insertion-percentage", 42 "nop-insertion-percentage",
43 cl::desc("Nop insertion probability as percentage"), cl::init(10)); 43 cl::desc("Nop insertion probability as percentage"), cl::init(10));
44 44
45 cl::opt<bool> 45 cl::opt<bool>
46 CLRandomizeRegisterAllocation("randomize-regalloc", 46 CLRandomizeRegisterAllocation("randomize-regalloc",
47 cl::desc("Randomize register allocation"), 47 cl::desc("Randomize register allocation"),
48 cl::init(false)); 48 cl::init(false));
49 } // end of anonymous namespace 49 } // end of anonymous namespace
50 50
51 void LoweringContext::init(CfgNode *N) { 51 void LoweringContext::init(CfgNode *N) {
52 Node = N; 52 Node = N;
53 End = getNode()->getInsts().end(); 53 End = getNode()->getInsts().end();
54 rewind(); 54 rewind();
55 advanceForward(Next); 55 advanceForward(Next);
56 } 56 }
57 57
58 void LoweringContext::rewind() { 58 void LoweringContext::rewind() {
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 if (Target == Target_ARM64) 266 if (Target == Target_ARM64)
267 return TargetGlobalARM64::create(Ctx); 267 return TargetGlobalARM64::create(Ctx);
268 #endif 268 #endif
269 llvm_unreachable("Unsupported target"); 269 llvm_unreachable("Unsupported target");
270 return nullptr; 270 return nullptr;
271 } 271 }
272 272
273 TargetGlobalLowering::~TargetGlobalLowering() {} 273 TargetGlobalLowering::~TargetGlobalLowering() {}
274 274
275 } // end of namespace Ice 275 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceTargetLowering.h ('k') | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698