| OLD | NEW |
| 1 //===- subzero/src/IceConditionCodesX8664.h - Condition Codes ---*- C++ -*-===// | 1 //===- subzero/src/IceConditionCodesX8664.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 // This file declares the condition codes for x86-64. | 10 /// \file |
| 11 // | 11 /// This file declares the condition codes for x86-64. |
| 12 /// |
| 12 //===----------------------------------------------------------------------===// | 13 //===----------------------------------------------------------------------===// |
| 13 | 14 |
| 14 #ifndef SUBZERO_SRC_ICECONDITIONCODESX8664_H | 15 #ifndef SUBZERO_SRC_ICECONDITIONCODESX8664_H |
| 15 #define SUBZERO_SRC_ICECONDITIONCODESX8664_H | 16 #define SUBZERO_SRC_ICECONDITIONCODESX8664_H |
| 16 | 17 |
| 17 #include "IceDefs.h" | 18 #include "IceDefs.h" |
| 18 #include "IceInstX8664.def" | 19 #include "IceInstX8664.def" |
| 19 | 20 |
| 20 namespace Ice { | 21 namespace Ice { |
| 21 | 22 |
| 22 class CondX8664 { | 23 class CondX8664 { |
| 23 // An enum of condition codes used for branches and cmov. The enum value | 24 /// An enum of condition codes used for branches and cmov. The enum value |
| 24 // should match the value used to encode operands in binary instructions. | 25 /// should match the value used to encode operands in binary instructions. |
| 25 enum BrCond { | 26 enum BrCond { |
| 26 #define X(tag, encode, opp, dump, emit) tag encode, | 27 #define X(tag, encode, opp, dump, emit) tag encode, |
| 27 ICEINSTX8664BR_TABLE | 28 ICEINSTX8664BR_TABLE |
| 28 #undef X | 29 #undef X |
| 29 Br_None | 30 Br_None |
| 30 }; | 31 }; |
| 31 | 32 |
| 32 // An enum of condition codes relevant to the CMPPS instruction. The enum | 33 /// An enum of condition codes relevant to the CMPPS instruction. The enum |
| 33 // value should match the value used to encode operands in binary | 34 /// value should match the value used to encode operands in binary |
| 34 // instructions. | 35 /// instructions. |
| 35 enum CmppsCond { | 36 enum CmppsCond { |
| 36 #define X(tag, emit) tag, | 37 #define X(tag, emit) tag, |
| 37 ICEINSTX8664CMPPS_TABLE | 38 ICEINSTX8664CMPPS_TABLE |
| 38 #undef X | 39 #undef X |
| 39 Cmpps_Invalid | 40 Cmpps_Invalid |
| 40 }; | 41 }; |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 } // end of namespace Ice | 44 } // end of namespace Ice |
| 44 | 45 |
| 45 #endif // SUBZERO_SRC_ICECONDITIONCODESX8664_H | 46 #endif // SUBZERO_SRC_ICECONDITIONCODESX8664_H |
| OLD | NEW |