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

Side by Side Diff: src/IceOperand.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/IceOperand.cpp - High-level operand implementation -----===// 1 //===- subzero/src/IceOperand.cpp - High-level operand 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 Operand class and its target-independent 10 // This file implements the Operand class and its target-independent
11 // subclasses, primarily for the methods of the Variable class. 11 // subclasses, primarily for the methods of the Variable class.
12 // 12 //
13 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===//
14 14
15 #include "IceOperand.h"
16
15 #include "IceCfg.h" 17 #include "IceCfg.h"
16 #include "IceCfgNode.h" 18 #include "IceCfgNode.h"
17 #include "IceInst.h" 19 #include "IceInst.h"
18 #include "IceOperand.h"
19 #include "IceTargetLowering.h" // dumping stack/frame pointer register 20 #include "IceTargetLowering.h" // dumping stack/frame pointer register
20 21
21 namespace Ice { 22 namespace Ice {
22 23
23 bool operator==(const RelocatableTuple &A, const RelocatableTuple &B) { 24 bool operator==(const RelocatableTuple &A, const RelocatableTuple &B) {
24 return A.Offset == B.Offset && A.Name == B.Name; 25 return A.Offset == B.Offset && A.Name == B.Name;
25 } 26 }
26 27
27 bool operator<(const RegWeight &A, const RegWeight &B) { 28 bool operator<(const RegWeight &A, const RegWeight &B) {
28 return A.getWeight() < B.getWeight(); 29 return A.getWeight() < B.getWeight();
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 if (getType() != IceType_i32 && getType() != IceType_i16 && 504 if (getType() != IceType_i32 && getType() != IceType_i16 &&
504 getType() != IceType_i8) 505 getType() != IceType_i8)
505 return false; 506 return false;
506 // The Following checks if the signed representation of Value is between 507 // The Following checks if the signed representation of Value is between
507 // -Threshold/2 and +Threshold/2 508 // -Threshold/2 and +Threshold/2
508 bool largerThanThreshold = Threshold / 2 + Value >= Threshold; 509 bool largerThanThreshold = Threshold / 2 + Value >= Threshold;
509 return largerThanThreshold; 510 return largerThanThreshold;
510 } 511 }
511 512
512 } // end of namespace Ice 513 } // end of namespace Ice
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698