diff options
Diffstat (limited to 'llvm/utils/TableGen/CodeGenInstruction.h')
| -rw-r--r-- | llvm/utils/TableGen/CodeGenInstruction.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.h b/llvm/utils/TableGen/CodeGenInstruction.h index 6f79b4bcc5c..04ad6d2c791 100644 --- a/llvm/utils/TableGen/CodeGenInstruction.h +++ b/llvm/utils/TableGen/CodeGenInstruction.h @@ -57,6 +57,15 @@ template <typename T> class ArrayRef; assert(isTied()); return OtherTiedOperand; } + + bool operator==(const ConstraintInfo &RHS) const { + if (Kind != RHS.Kind) + return false; + if (Kind == Tied && OtherTiedOperand != RHS.OtherTiedOperand) + return false; + return true; + } + bool operator!=(const ConstraintInfo &RHS) const { return *this != RHS; } }; /// OperandInfo - The information we keep track of for each operand in the |

