Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 //===- subzero/src/IceConditionCodesX8632.h - Condition Codes ---*- C++ -*-===// | 1 //===- subzero/src/IceConditionCodesX8632.h - Condition Codes ---*- C++ -*-===// |
| 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 /// \file | 10 /// \file |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 22 | 22 |
| 23 class CondX86 { | 23 class CondX86 { |
| 24 CondX86() = delete; | 24 CondX86() = delete; |
| 25 CondX86(const CondX86 &) = delete; | 25 CondX86(const CondX86 &) = delete; |
| 26 CondX86 &operator=(const CondX86 &) = delete; | 26 CondX86 &operator=(const CondX86 &) = delete; |
| 27 | 27 |
| 28 public: | 28 public: |
| 29 /// An enum of condition codes used for branches and cmov. The enum value | 29 /// An enum of condition codes used for branches and cmov. The enum value |
| 30 /// should match the value used to encode operands in binary instructions. | 30 /// should match the value used to encode operands in binary instructions. |
| 31 enum BrCond { | 31 enum BrCond { |
| 32 #define X(tag, encode, opp, dump, emit) tag encode, | 32 #define X(val, encode, opp, dump, emit) val = encode, |
|
John
2015/10/28 12:48:06
Not that it matters, but I think tag was more clea
Jim Stichnoth
2015/10/28 14:03:55
I was trying to make all the x-macros consistent w
| |
| 33 ICEINSTX8632BR_TABLE | 33 ICEINSTX8632BR_TABLE |
| 34 #undef X | 34 #undef X |
| 35 Br_None | 35 Br_None |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 /// An enum of condition codes relevant to the CMPPS instruction. The enum | 38 /// An enum of condition codes relevant to the CMPPS instruction. The enum |
| 39 /// value should match the value used to encode operands in binary | 39 /// value should match the value used to encode operands in binary |
| 40 /// instructions. | 40 /// instructions. |
| 41 enum CmppsCond { | 41 enum CmppsCond { |
| 42 #define X(tag, emit) tag, | 42 #define X(val, emit) val, |
| 43 ICEINSTX8632CMPPS_TABLE | 43 ICEINSTX8632CMPPS_TABLE |
| 44 #undef X | 44 #undef X |
| 45 Cmpps_Invalid | 45 Cmpps_Invalid |
| 46 }; | 46 }; |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // end of namespace Ice | 49 } // end of namespace Ice |
| 50 | 50 |
| 51 #endif // SUBZERO_SRC_ICECONDITIONCODESX8632_H | 51 #endif // SUBZERO_SRC_ICECONDITIONCODESX8632_H |
| OLD | NEW |